SDK Launch Button Visibility Handling Guide
SDK Launch Button Visibility Handling Guide
Depending on your application and your use of the StreamLayer SDK, you may want to hide or show the launch button within the app. For example you may want to hide the SDK launch button when your app is showing the player controls to your user. In that case, you can use a delegate method for StreamLayer to hide the launch button. A basic example of the delegate method implementation appears below:
@objc
public class StreamLayer: NSObject {
...
@objc
public static func hideLaunchButton(_ flag: Bool) {
activeController?.hideLaunchButton(flag)
}
...
}'hideLaunchButton' is the static method you will use as shown below. The parameter isShown is the boolean value that toggles visibility of the launch button.
StreamLayer.hideLaunchControls(true)Updated 6 months ago
