Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AGCStorageService

Hierarchy

  • AGCStorageBaseService
    • AGCStorageService

Index

Methods

getCacheDir

  • getCacheDir(): any
  • zh

    Context.getCacheDir()。返回文件系统上应用程序特定的缓存目录的绝对路径。

    en

    Context.getCacheDir(). Returns the absolute path to the application specific cache directory on the filesystem.

    Returns any

    The path of the directory holding application cache files.

getDataDirectory

  • getDataDirectory(): any

getDownloadCacheDirectory

  • getDownloadCacheDirectory(): any

getExternalCacheDir

  • getExternalCacheDir(): any
  • zh

    Context.getExternalCacheDir()。返回应用程序可以放置其拥有的缓存文件的所有外部存储设备上的应用程序特定目录的绝对路径。 这些文件是应用程序的内部文件,通常对用户不可见。

    en

    Context.getExternalCacheDir(). Returns absolute paths to application-specific directories on all external storage devices where the application can place cache files it owns. These files are internal to the application, and not typically visible to the user as media.

    Returns any

    The path of the directory holding application cache files on external storage. Returns null if external storage is not currently mounted so it could not ensure the path exists; you will need to call this method again when it is available.

getExternalFilesDir

  • getExternalFilesDir(): any
  • zh

    Context.getExternalFilesDir(null)。返回主外部文件系统上目录的绝对路径。

    en

    Context.getExternalFilesDir(null). Returns the absolute path to the directory on the primary external filesystem.

    Returns any

    The path of the directory holding application files on external storage. Returns null if external storage is not currently mounted so it could not ensure the path exists; you will need to call this method again when it is available.

getExternalStorageDirectory

getFilesDir

  • getFilesDir(): any
  • zh

    Context.getFilesDir()。返回文件系统目录的绝对路径。

    en

    Context.getFilesDir(). Returns the absolute path to the directory on the filesystem.

    Returns any

    The path of the directory holding application files.

getInstance

  • en

    Initialize the storage instance. If you do not fill in the parameters, get the default instance.

    zh

    初始化存储实例。若不填写参数则获取默认实例

    Parameters

    • Default value bucketName: string = "default"

      instance name

    Returns AGCStorageManagement

getRootDirectory

  • getRootDirectory(): any

off

  • off(event_name: string, cb: Function, node: any): void
  • en

    remove event listener

    zh

    取消事件的监听

    Parameters

    • event_name: string

      event name

    • cb: Function

      callback function

    • node: any

      target node

    Returns void

on

  • on(event: string, cb: Function, node?: any): void
  • en

    event listener

    zh

    持续监听事件

    Parameters

    • event: string

      event name

    • cb: Function

      event callback

    • Optional node: any

      target node

    Returns void

onError

  • onError(errCode: number, errMsg: string): void
  • Parameters

    • errCode: number
    • errMsg: string

    Returns void

onResult

  • onResult(retCode: number, retMsg: string): void
  • Parameters

    • retCode: number
    • retMsg: string

    Returns void

onTask

  • onTask(taskId: string, taskType: string, status: string, result: string): void
  • Parameters

    • taskId: string
    • taskType: string
    • status: string
    • result: string

    Returns void

once

  • once(event: string, cb: Function, node?: any): void
  • en

    event listener for once

    zh

    监听一次事件

    Parameters

    • event: string

      event name

    • cb: Function

      event callback

    • Optional node: any

      target node

    Returns void

targetOff

  • targetOff(node: any): void
  • en

    remove all event listener for the node

    zh

    取消某个节点所有的事件监听

    Parameters

    • node: any

    Returns void

Static callStaticMethod

  • callStaticMethod(...args: (number | boolean | string)[]): any
  • Parameters

    • Rest ...args: (number | boolean | string)[]

    Returns any

Generated using TypeDoc