CustomMessageHandlerDelegate

@objc(BMPCustomMessageHandlerDelegate)
public protocol CustomMessageHandlerDelegate

Methods for handling received messages from Bitmovin Web UI.

  • Gets called when a synchronous message was received from the Bitmovin Web UI.

    Declaration

    Swift

    func receivedSynchronousMessage(
        _ message: String,
        withData data: String?
    ) -> String?

    Parameters

    message

    Identifier of the message.

    data

    Optional data of the message as string (can be a serialized object).

    Return Value

    Optional return value as string which will be propagates back to the JS counterpart.

  • Gets called when a asynchronous message was received from the Bitmovin Web UI.

    Declaration

    Swift

    func receivedAsynchronousMessage(
        _ message: String,
        withData data: String?
    )

    Parameters

    message

    Identifier of the message.

    data

    Optional data of the message as string (can be a serialized object).