API
Class

com.justep.cordova.plugin.app.utils (com.justep.cordova.plugin.app.utils)

使用范围:Native

Contents

class com.justep.cordova.plugin.app.utils (com.justep.cordova.plugin.app.utils)

提供app更新 资源包更新能力设置首页等相关能力

Constructor Top

  utils ()

Static Methods Top

void clearCache (int type)
void clearCache (int type)
string getResourceDirPath ()
string getResourceDirPath ()
Boolean isWifiConnection ()
Boolean isWifiConnection ()
void setIndexPageUrl (string indexPageUrl)
void setIndexPageUrl (string indexPageUrl)
void updateAppResource (string resourceDownloadUrl)
void updateAppResource (string resourceDownloadUrl)

Constructor details Top

public utils ()

提供app更新 资源包更新能力设置首页等相关能力

Static Methods Detail Top

static public void clearCache (int type)

清除cache文件和文件夹

Parameters

int type

清除的资源类型,0代表更新的资源,1代表app临时的文件夹

Return Value

void

static public void clearCache (int type)

清除cache文件和文件夹

Parameters

int type

清除的资源类型,0代表更新的资源,1代表app临时的文件夹

Return Value

void

static public string getResourceDirPath ()

获取资源路径

Return Value

string

static public string getResourceDirPath ()

获取资源路径

Return Value

string

static public Boolean isWifiConnection ()

判断当前是否为wifi连接

Return Value

Boolean

static public Boolean isWifiConnection ()

判断当前是否为wifi连接

Return Value

Boolean

static public void setIndexPageUrl (string indexPageUrl)

设置首页

Parameters

string indexPageUrl

首页路径

Return Value

void

static public void setIndexPageUrl (string indexPageUrl)

设置首页

Parameters

string indexPageUrl

首页路径

Return Value

void

static public void updateAppResource (string resourceDownloadUrl)

更新app资源

Parameters

string resourceDownloadUrl

资源下载路径

Return Value

void

static public void updateAppResource (string resourceDownloadUrl)

更新app资源

Parameters

string resourceDownloadUrl

资源下载路径

Return Value

void