cpr.protocols.PageFunctionCallType

The call type of the page function.

Index

Properties
Name Type Description
NORMAL String Refers to the case where the return value of a function provided by the page is returned through the normal return syntax.
RESULT_FIRST_CALLBACK String Indicates when the return value of a function provided by the page is returned through a callback function.
ERROR_FIRST_CALLBACK String Indicates when the return value of a function provided by the page is returned through the second call argument of the callback function.

Properties

NORMAL
type String
Refers to the case where the return value of a function provided by the page is returned through the normal return syntax. Use this type of call form even if that function returns a promise.
RESULT_FIRST_CALLBACK
type String
Indicates when the return value of a function provided by the page is returned through a callback function.
ERROR_FIRST_CALLBACK
type String
Indicates when the return value of a function provided by the page is returned through the second call argument of the callback function.