cpr.adapters.PlatformAdapter
Provides APIs for interworking with external eXBuilder6 applications in third-party web applications inserted through embedded page control.
Index
Name |
Return Type |
Description |
registerChannelFunction |
|
Registers a function that can be called on an upstream page channel. |
unregisterChannelFunction |
|
Removes a function registered to an upstream page channel. |
setFocusHandler |
|
Specifies a handler to give focus to the internal content when the external embedded page currently displaying the web content gains focus. |
callHostFunction |
Promise<Object> |
Calls a function in an external eXBuilder application that displays the current web content. |
focusHost |
|
Returns focus to the external eXBuilder application displaying the current web content. |
getVersion |
String |
Get the adapter version. |
getReleaseDate |
Date |
Get the release date of the adapter library. |
disableAutoFocus |
|
Disables the default focus link action. |
Methods
Registers a function that can be called on an upstream page channel.
name |
type |
description |
funcName
|
String |
function name. |
func
|
Function |
function. |
Removes a function registered to an upstream page channel.
The host will no longer be able to call this function.
name |
type |
description |
func
|
Function |
The function to remove. |
Removes a function registered to an upstream page channel.
The host will no longer be able to call this function.
name |
type |
description |
funcName
|
String |
The name of the function to remove. |
Specifies a handler to give focus to the internal content when the external embedded page currently displaying the web content gains focus.
name |
type |
description |
newHandler
|
(forward: Boolean)=>Void |
focus handler. |
Calls a function in an external eXBuilder application that displays the current web content.
name |
type |
description |
name
|
String |
function name. |
args
|
Array |
argument list. |
callTypeoptional
|
PageFunctionCallType |
default"normal"
|
call type. |
return
|
Promise<Object> |
Promise object as a result of the call. |
Returns focus to the external eXBuilder application displaying the current web content.
name |
type |
description |
forward
|
Boolean |
The direction in which the focus is transferred. Forward if true , reverse if false . |
Get the adapter version.
return
|
String |
adapter version. |
Get the release date of the adapter library.
return
|
Date |
The distribution date of the adapter library. |