Vizbee Context
VizbeeContext is the core singleton class used to control Vizbee's Remote SDK. For Vizbee SDK initialization, the init() method needs to be called in the host Application's onCreate() method.
VizbeeContext remote = VizbeeContext.getInstance();
remote.init(application, "vzbNNNNNNN", myRemoteAdapter);
Content copied to clipboard
- CastIcon: When a user clicks on the cast icon.
- SmartPlay: When a user clicks the play button on a video. In this case, instead of playing the video immediately, the host application calls the Vizbee SmartPlay() API. Vizbee will 'smartly' decide if the user should be shown options to play the video on TV (if available in vicinity) or instead play on phone instantly.
- DeepLink: When a user deeplinks from an external app such as Facebook.
VizbeeContext.getInstance().smartPlay(currentActivity, videoObject, position);
Content copied to clipboard
Types
Link copied to clipboard
enum VizbeeSDKMode
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get instance of HomeDiscovery which provides currently discovered devices and listener for device list changes.
Link copied to clipboard
Get new instance HomeFlows to start a Vizbee UI flow.
Link copied to clipboard
Get the singleton Vizbee Remote instance.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Default init method
open fun init(application: Application, appId: String, smartPlayAdapter: ISmartPlayAdapter, isProduction: Boolean)
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.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun playVideoOnPhone(@Nullable context: Context, @NonNull appVideoObject: Any, requestedStartPosition: Long, shouldAutoPlay: Boolean, @NonNull status: VizbeeStatus)
This method is not exposed to customers This method is public because it is being accessed from the PlayOnPhoneManager class
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Method to set authentication adapter.
Link copied to clipboard
open fun setAuthenticationAndAuthorizationAdapters(authn: IAuthenticationAdapter, authz: IAuthorizationAdapter)
Method to set both authentication &authorization adapters.
Link copied to clipboard
API for instrumentation testing
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun shouldUseCloudConfigForAllowedDevicesFilter(shouldUseCloudConfigForAllowedDevicesFilter: Boolean)