BMPCustomMessageHandler
Objective-C
@interface BMPCustomMessageHandler : NSObject
Swift
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
Objective-C
@property (nonatomic, weak, nullable) id<BMPCustomMessageHandlerDelegate> delegate;Swift
weak var delegate: CustomMessageHandlerDelegate? { get set } -
Calls the registered callback within the NativeCommunicationHandler in the Bitmovin Web UI
Declaration
Objective-C
- (void)sendMessage:(nonnull NSString *)message;Swift
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
Objective-C
- (void)sendMessage:(nonnull NSString *)message withData:(nullable NSString *)data;Swift
func sendMessage(_ message: String, withData data: String?)Parameters
messageIdentifier for the callback which should be called
dataPayload for the callback
BMPCustomMessageHandler Class Reference