finn-android-sdk

FINN Android Mobile SDK

Is a library that provides access to Finn mobile API. This SDK enables creation of customized FINN enabled apps. Users also can access their FINN data through official FINN app.

###

Getting started

Create instance of Finn and run the SDK:

val finn = Finn.newInstance("my_api_key", application, isSilentPinMode)
finn.startFinn()

Finn.start.startFinn will return FinnRegistrationState, based on this state user should be directed to sign up, sign in or login flows. Once FinnRegistrationState.HAS_PIN state is obtained all SDK methods are available.

Structure

SDK interface is divided per logical components:

All the above components available via Finn interface.

Adding Finn SDK to your project

In order to start using an SDK

  1. Go to maker portal and create new application by providing your application id. You will get API_KEY and custom schema needed for deep links.
  2. Add jar file to your app/libs and make sure your app/gradle contains following line:
    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
    }
  1. In your code instantiate Finn instance with API key obtained from maker portal, see #1
    Finn.newInstance("API_KEY", application, silentPinModeEnabled)

Now you can use Finn SDK

Deeplinking

In order to differentiate Finn enabled applications we assign custom schemas for every app. Deeplink has to be registered in AndroidManifest

<intent-filter>
    <data android:scheme="my-custom-schema" />
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
</intent-filter>

This is important for SignIn and Payment flows.

Silent pin mode

SDK provides authentication flow for the user.

Packages

Name Summary
com.finn.sdk  
com.finn.sdk.delegate  
com.finn.sdk.enums  
com.finn.sdk.error  
com.finn.sdk.model.domain  
com.finn.sdk.network  
com.finn.sdk.util  

Index

All Types