CustomMessageHandler
@objcMembers
@objc(BMPCustomMessageHandler)
public class CustomMessageHandler : NSObject
This class handles all communication between the native environment and the Bitmovin Web UI environment in one place.
-
Delegate to handle communication from Bitmovin Web UI to native.
Declaration
Swift
public weak var delegate: CustomMessageHandlerDelegate? -
Calls the registered callback within the NativeCommunicationHandler in the Bitmovin Web UI
Declaration
Swift
public func sendMessage(_ message: String)Parameters
messageIdentifier for the callback which should be called.
-
Calls the registered callback within the NativeCommunicationHandler in the Bitmovin Web UI
Declaration
Swift
public func sendMessage(_ message: String, withData data: String?)Parameters
messageIdentifier for the callback which should be called.
dataPayload for the callback.
CustomMessageHandler Class Reference