UniversalBridgeDelegate
public protocol UniversalBridgeDelegate : AnyObject
Public Protocol that will be used by the Mini App to communicate with the Native implementation for sending string data through interface 1 mechanism
-
Interface that is used to send the string content from the Mini app. This must be implemented in the host app to receive the message from MiniApp.
Declaration
Swift
func sendJsonToHostApp(info: String, completionHandler: @escaping (Result<MASDKProtocolResponse, UniversalBridgeError>) -> Void)
-
Interface that is used to send the UniversalBridgeInfo content from the Mini app. This must be implemented in the host app to receive the message from MiniApp.
Declaration
Swift
func sendInfoToHostApp(info: UniversalBridgeInfoParameters, completionHandler: @escaping (Result<MASDKProtocolResponse, UniversalBridgeError>) -> Void)