Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • NativeManager

Index

Constructors

constructor

Properties

app

nativeInitialized

nativeInitialized: boolean

Indicates whether native is initialized. For a check with an asynchronous callback use onNativeInitialized().

Methods

appendAuthorizationHeader

  • appendAuthorizationHeader(dojoArgs: any): void
  • Parameters

    • dojoArgs: any

    Returns void

getViewerResourceInfo

  • getViewerResourceInfo(fileName: string): Promise<ResourceInfo>
  • Gets the resource info for a viewer resource.

    Parameters

    • fileName: string

      The name of the file on the server to get the resource info for.

    Returns Promise<ResourceInfo>

hasNativeCapability

  • hasNativeCapability(capability: string): Promise<boolean>
  • Tests to see if the app has a certain native capability. Example "editing".

    Parameters

    • capability: string

    Returns Promise<boolean>

isIosNative

  • isIosNative(): boolean
  • Returns boolean

isNative

  • isNative(): boolean
  • Returns boolean

isWindowsNative

  • isWindowsNative(): boolean
  • Returns boolean

message

  • message(messageType: string, body: any, cancellationToken?: CancellationToken, progress?: function): Promise<any>
  • Sends a message to GMAF and returns a Promise that will be resolved when the operation is complete. Operations can be short running (if there is no cancellation token) or long running (if there is a cancellation token).

    Parameters

    • messageType: string
    • body: any
    • Optional cancellationToken: CancellationToken
    • Optional progress: function
        • (status: any): void
        • Parameters

          • status: any

          Returns void

    Returns Promise<any>

onNativeInitialized

  • onNativeInitialized(): Promise<void>
  • Gets a promise that will be resolved when the "native ready" message has been received from the native layer, which indicates that the native infrastructure has been initialized.

    Returns Promise<void>

signalNativeInitialized

  • signalNativeInitialized(): void
  • To be called once by the module that handles the native initialize to indicate that native initialization is complete. Causes the promise returned by onNativeInitialized() to be resolved.

    Returns void

subscribe

  • subscribe(messageType: string, handler: function): void
  • Subscribe to messages sent from GMAF.

    Parameters

    • messageType: string
    • handler: function
        • (message: any): void
        • Parameters

          • message: any

          Returns void

    Returns void

xhrGet

  • xhrGet(dojoArgs: any): Promise<any>
  • Parameters

    • dojoArgs: any

    Returns Promise<any>

xhrPost

  • xhrPost(dojoArgs: any): Promise<any>
  • Parameters

    • dojoArgs: any

    Returns Promise<any>

xhrPostUnsecured

  • xhrPostUnsecured(dojoArgs: any): any
  • Parameters

    • dojoArgs: any

    Returns any