Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PermissionServiceProvider

Manage permissions

Hierarchy

  • PermissionServiceProvider

Index

Constructors

constructor

Properties

Private sessionService

sessionService: SessionService

Methods

getPermissionState

handlePermissionRequest

  • handlePermissionRequest(session: SessionPort, id: string, options: any): Promise<void>
  • Browsers should override this and ask the users via their own UI. The permissions should be stored locally based on the host name and id(=type).

    Parameters

    • session: SessionPort

      Used to acquire hostname from the uri.

    • id: string

      Can be used as a type of permission. Also can be random id's on Vuforia requests.

    • options: any

    Returns Promise<void>

    A resolved promise if subscription is permitted.

Generated using TypeDoc