/ fm / liveswitch / PostMessage
Class: PostMessage
fm.liveswitch.PostMessage
Table of contents
Constructors
Properties
Methods
Constructors
constructor
+ new PostMessage(): PostMessage
Returns: PostMessage
Properties
_cache
▪ Private
Static
_cache: Hash<string, PostMessageRecord>
Defined in: Generated/TypeScript/fm.liveswitch/PostMessage.ts:12
_optionsCache
▪ Private
Static
_optionsCache: Hash<string, PostMessageSendOptions>
Defined in: Generated/TypeScript/fm.liveswitch/PostMessage.ts:14
_optionsCounter
▪ Private
Static
_optionsCounter: number= 0
Defined in: Generated/TypeScript/fm.liveswitch/PostMessage.ts:13
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/PostMessage.ts:9
createFrame
▸ Private
Static
createFrame(options
: PostMessageSendOptions, callback
: IAction2<HTMLIFrameElement, string>): void
Parameters:
Name | Type |
---|---|
options |
PostMessageSendOptions |
callback |
IAction2<HTMLIFrameElement, string> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/PostMessage.ts:18
getOrigin
▸ Private
Static
getOrigin(url
: string): string
Parameters:
Name | Type |
---|---|
url |
string |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/PostMessage.ts:15
listen
▸ Private
Static
listen(options
: PostMessageSendOptions, frame
: HTMLIFrameElement): void
Parameters:
Name | Type |
---|---|
options |
PostMessageSendOptions |
frame |
HTMLIFrameElement |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/PostMessage.ts:116
send
▸ Static
send(options
: PostMessageSendOptions): void
Parameters:
Name | Type |
---|---|
options |
PostMessageSendOptions |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/PostMessage.ts:88