Interface WorkerGlobalScope

Hierarchy

Index

Properties

Methods

Properties

public PERSISTENT: number

Used for storage that should not be removed by the user agent without application or user permission.

public TEMPORARY: number

Used for storage with no guarantee of persistence.

Methods

public requestFileSystem(type: number, size: number, successCallback: FileSystemCallback, errorCallback?: ErrorCallback)

Requests a filesystem in which to store application data.

Parameters

  • type: number

    Whether the filesystem requested should be persistent, as defined above. Use one of TEMPORARY or PERSISTENT.

  • size: number

    This is an indicator of how much storage space, in bytes, the application expects to need.

  • successCallback: FileSystemCallback

    The callback that is called when the user agent provides a filesystem.

  • errorCallback?: ErrorCallback optional

    A callback that is called when errors happen, or when the request to obtain the filesystem is denied.

public requestFileSystemSync(type: number, size: number): FileSystemSync

Requests a filesystem in which to store application data.

Parameters

  • type: number

    Whether the filesystem requested should be persistent, as defined above. Use one of TEMPORARY or PERSISTENT.

  • size: number

    This is an indicator of how much storage space, in bytes, the application expects to need.

Returns

FileSystemSync

public resolveLocalFileSystemSyncURL(url: string): EntrySync

Allows the user to look up the Entry for a file or directory referred to by a local URL.

Parameters

  • url: string

    A URL referring to a local file in a filesystem accessable via this API.

Returns

EntrySync

public resolveLocalFileSystemURL(url: string, successCallback: EntryCallback, errorCallback?: ErrorCallback)

Allows the user to look up the Entry for a file or directory referred to by a local URL.

Parameters

  • url: string

    A URL referring to a local file in a filesystem accessable via this API.

  • successCallback: EntryCallback

    A callback that is called to report the Entry to which the supplied URL refers.

  • errorCallback?: ErrorCallback optional

    A callback that is called when errors happen, or when the request to obtain the Entry is denied.

public webkitRequestFileSystem(type: number, size: number, successCallback: FileSystemCallback, errorCallback?: ErrorCallback)

see requestFileSystem.

Parameters

public webkitRequestFileSystemSync(type: number, size: number): FileSystemSync

see requestFileSystemSync

Parameters

  • type: number
  • size: number

Returns

FileSystemSync