Api: featureAbility.getContext
版本适配:API 6
作用:获取应用上下文
示例代码:
import featureAbility from '@ohos.ability.featureability';
var context = featureAbility.getContext()
context.getBundleName()
Api: featureAbility.getContext
版本适配:API 6
作用:获取应用上下文
示例代码:
import featureAbility from '@ohos.ability.featureability';
var context = featureAbility.getContext()
context.getBundleName()