init

open fun init(application: Application, appId: String, smartPlayAdapter: ISmartPlayAdapter)

Default init method

Parameters

application

Host Application context

appId

Vizbee AppID (of format "vzbNNNNNNN" provided by Vizbee for your application)

smartPlayAdapter

An implementation of the ISmartPlayAdapter interface


open fun init(application: Application, appId: String, smartPlayAdapter: ISmartPlayAdapter, isProduction: Boolean)

Init method to explicitly control whether Vizbee production of staging config is loaded for your app. Vizbee has simple configuration for each video app. This configuration controls on which TV devices (Roku, FireTV, Vizio etc.) your Android app can play videos. If host app is already in production and we want to test support for a new TV device, we need to first test the host app integration with Vizbee staging config. This can be done by setting the isProduction parameter to false.

Parameters

application

Host Application context

appId

Vizbee AppID (of format "vzbNNNNNNN" provided by Vizbee for your application)

smartPlayAdapter

An implementation of the ISmartPlayAdapter interface

isProduction

Set false if testing against Vizbee's staging config


open fun init(@NonNull application: Application, @NonNull appId: String, @NonNull smartPlayAdapter: ISmartPlayAdapter, @NonNull options: VizbeeOptions)

Init method to explicitly control whether Vizbee production of staging config is loaded for your app. Vizbee has simple configuration for each video app. This configuration controls on which TV devices (Roku, FireTV, Vizio etc.) your Android app can play videos. If host app is already in production and we want to test support for a new TV device, we need to first test the host app integration with Vizbee staging config. This can be done by setting the isProduction parameter to false.

Parameters

application

Host Application context

appId

Vizbee AppID (of format "vzbNNNNNNN" provided by Vizbee for your application)

smartPlayAdapter

An implementation of the ISmartPlayAdapter interface

options

Custom options to enable additional Vizbee features.