Interface: INativeService
Class for interacting with the underyling native file
Extends
Methods
canReplaceNative()
canReplaceNative(): boolean
Ask the native server whether the user has permission to replace the native file
Returns
boolean
A boolean indicating whether the user can replace the native file
newNativeFileAdded()
newNativeFileAdded(): Promise
<void
>
Inform the review interface that a new native file has been uploaded. Assumes that the native file has finished uploading.
Returns
Promise
<void
>
A promise that resolves when the review interface has completed handling for the native replacement
off()
off(eventType
, handler
?, once
?): void
Unregisters an event handler
Parameters
• eventType: NewNativeAdded
Event to unregister from
• handler?: EventHandler
Event handler function. If not passed in, it removes all event handlers.
• once?: boolean
Boolean indicating if the event handler was registered as a one-time event handler (Defaults to false)
Returns
void
Inherited from
IEventEmitter
.off
on()
on(eventType
, handler
): void
Registers an event handler
Parameters
• eventType: NewNativeAdded
Event to listen for
• handler: EventHandler
Event handler function
Returns
void
Inherited from
IEventEmitter
.on
once()
once(eventType
, handler
): void
Registers an event handler that is only run once
Parameters
• eventType: NewNativeAdded
Event to listen for
• handler: EventHandler
Event handler function
Returns
void
Inherited from
IEventEmitter
.once