Stream Layer
Use this class as an entry point for StreamLayer SDK.
Functions
A function to get id of active watch party of the StreamLayer SDK.
Function to add a custom overlay to the StreamLayer SDK.
Called when you want to login for the StreamLayer SDK session.
A function to close StreamLayer SDK active watch party.
The StreamLayer SDK supports event by event configuration. After the StreamLayer SDK has been initialized, call this method at least once to fetch the current active configuration. Every time the current event occurs, this method should be called with a new event id to fetch the relevant configuration.
The StreamLayer SDK supports subscription to the managed group.
This function processes the StreamLayer deep link. The function parses the StreamLayerFragment in your activity and launch the appropriate overlay.
This function handles the StreamLayer invite link.
When a push receives a push message, this function will process the notification and display it to the user. Add this function to your FirebaseMessagingService in FirebaseMessagingService.onMessageReceived to enable the StreamLayer SDK to intercept push notifications.
Initializes the application and creates a dependency injection tree. This method within the onCreate()
method of your application or at least before the screen that uses the StreamLayerFragment or StreamLayerLiteFragment.
A function to compare watch party id with managed watch party.
Returns whether the user is authorized in the StreamLayer SDK session.
A function to check if StreamLayer SDK Watch party is supported on device.
A function to open StreamLayer SDK active watch party.
Sends a custom notification to the host app.
Set custom theme for SDK.
A function to change gamification data options.
The StreamLayer SDK has an internal Logcat function that could be enabled / disabled by this function. By default, logging is enabled.
A function to register the listener invoked when StreamLayer SDK needs to log any message or error.
If you want to disable phone contacts ui or sync, the host app needs to set these flags to false with this function.
A function to change statistics data fetching options.
A function to register the SLRVideoPlayerProvider which invoked when a video playback has been requested.
If you want to disable watch party history ui or public watch party feature, the host app needs to set these flags to false with this function.
To enable push messages from the StreamLayer service, you need to upload the device token to register it with the current user. Upload the token every time when the token changes. This function should be in your FirebaseMessageService.onNewToken callback.
Called when you want to login for the StreamLayer SDK session as anonymous user.
A function which provides subscription to the user is authorized updates.
A function to change options of the current StreamLayerFragment host.