Launch Button Visibility

Control Launch Button visibility in the StreamLayer Android SDK. Use StreamLayerUI.hideLaunchButton() to show or hide the button when displaying player controls or other UI elements.

Launch Button Visibility

Depending on your application, you may want to hide or show the Launch Button. For example, you may want to hide the Launch Button when your app is displaying player controls. Use the StreamLayerUI.hideLaunchButton() method to toggle visibility:

StreamLayerUI.hideLaunchButton(activity: FragmentActivity, isVisible:Boolean)

The activity parameter is the Activity containing StreamLayerFragment. The isVisible parameter toggles visibility of the Launch Button.


Related