onPostMessage property
OnPostMessageCallback?
get
onPostMessage
Event that receives a message sent by a postMessage()
on the injected JavaScript object.
Note that when the frame is file:
or content:
origin, the value of sourceOrigin
is null
.
message
represents the message from JavaScript.sourceOrigin
represents the origin of the frame that the message is from.isMainFrame
istrue
if the message is from the main frame.replyProxy
is used to reply back to the JavaScript object.
Implementation
OnPostMessageCallback? get onPostMessage => platform.onPostMessage;