Home
last modified time | relevance | path

Searched refs:createBundleContext (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.37/
H A Dchangelogs-ability.md148 ## cl.ability.3 createBundleContext接口废弃
174 |createBundleContext(bundleName: string): Context|用这个接口创建的context无法正确获取资源,建议使用替代接口。|createBundleCon…
178 需要使用新的替代接口,替代接口为带context入参的createBundleContext
191 bundleContext = this.context.createBundleContext('bundlename');
193 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
209 common.createBundleContext(this.context,'bundlename').then((data: Context)=>{
212 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
215 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/
H A Djs-apis-app-ability-application-sys.md73 ## application.createBundleContext<sup>12+</sup>
75 createBundleContext(context: Context, bundleName: string): Promise\<Context>
119 application.createBundleContext(this.context, 'bundlename').then((data: Context)=>{
121 console.info('createBundleContext success!');
123 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
126 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
H A Djs-apis-inner-application-context-sys.md17 ## Context.createBundleContext<sup>(deprecated)</sup>
19 createBundleContext(bundleName: string): Context
27 > 从 API Version 12 开始废弃,建议使用[application.createBundleContext](./js-apis-app-ability-application-sys…
66 bundleContext = this.context.createBundleContext('com.example.test');
68 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
H A Djs-apis-app-ability-application.md59 console.info('createBundleContext success!');
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.37/
H A Dchangelogs-ability.md148 ## cl.ability.3 Deprecated the createBundleContext API
174createBundleContext(bundleName: string): Context|The context created using this API cannot obtain …
178 Use **createBundleContext** with the input parameter **context** in the code.
191 bundleContext = this.context.createBundleContext('bundlename');
193 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
209 common.createBundleContext(this.context,'bundlename').then((data: Context)=>{
212 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
215 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/
H A Djs-apis-app-ability-application-sys.md74 ## application.createBundleContext<sup>12+</sup>
76 createBundleContext(context: Context, bundleName: string): Promise\<Context>
121 application.createBundleContext(this.context, 'bundlename').then((data: Context)=>{
123 console.info('createBundleContext success!');
125 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
128 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
H A Djs-apis-inner-application-context-sys.md17 ## Context.createBundleContext<sup>(deprecated)</sup>
19 createBundleContext(bundleName: string): Context
27 …precated since API version 12. You are advised to use [application.createBundleContext](./js-apis-…
66 bundleContext = this.context.createBundleContext('com.example.test');
68 …console.error(`createBundleContext failed, error.code: ${(error as BusinessError).code}, error.mes…
H A Djs-apis-app-ability-application.md59 console.info('createBundleContext success!');
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app/context/
H A Dcontext.js73 createBundleContext(bundleName) { method in Context
74 return this.__context_impl__.createBundleContext(bundleName);
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app/application_context/
H A Dapplication_context.js112 createBundleContext(bundleName) { method in ApplicationContext
113 return this.__context_impl__.createBundleContext(bundleName);
/ohos5.0/docs/zh-cn/application-dev/application-models/
H A Dapplication-context-stage.md6 …apis-app-ability-contextConstant.md#areamode)(文件分区)等,以及应用的一些基本方法,例如createBundleContext()、[getAppli…
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/
H A Dchangelogs-ability.md137 | Context.d.ts | createBundleContext(bundleName: string): Context |…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta1/
H A Djs-apidiff-ability.md50 | context | Context | createBundleContext(bundleName: string): Context; | 新增 |
/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Dresource-categories-and-access.md318 - 通过[createBundleContext(context, bundleName)](../reference/apis-ability-kit/js-apis-app-ability-ap…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-ability_api-9-canary.md46 | context | Context | createBundleContext(bundleName: string): Context; | 新增 |
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta1/
H A Djs-apidiff-ability.md50 | context | Context | createBundleContext(bundleName: string): Context; | Added|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.2.1/
H A Dchangelogs-ability.md137 | Context.d.ts | createBundleContext(bundleName: string): Context …
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202211/
H A Djs-apidiff-ability.md194 |model有变化|方法名 or 属性名:createBundleContext<br>model:@stagemodelonly|方法名 or 属性名:createBundleContext<br…
/ohos5.0/docs/en/application-dev/application-models/
H A Dapplication-context-stage.md6 …mode) (encryption level). It also provides basic methods such as **createBundleContext()** and [ge…
/ohos5.0/docs/en/release-notes/api-diff/monthly-202211/
H A Djs-apidiff-ability.md194 …nged|Method or attribute name: createBundleContext<br>Model: @stagemodelonly|Method or attribute n…
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202210/
H A Djs-apidiff-ability.md635 |model有变化|方法名 or 属性名:createBundleContext<br>model:@StageModelOnly|方法名 or 属性名:createBundleContext<br…
771 |新增(错误码)|NA|方法名 or 属性名:createBundleContext<br>错误码内容:401|Context.d.ts|
/ohos5.0/docs/en/application-dev/quick-start/
H A Dresource-categories-and-access.md331 - Create the context of the HAP/HSP file through [createBundleContext(context, bundleName)](../refe…
/ohos5.0/docs/en/release-notes/api-diff/monthly-202210/
H A Djs-apidiff-ability.md635 …nged|Method or attribute name: createBundleContext<br>Model: @StageModelOnly|Method or attribute n…
771 |Error code added|NA|Method or attribute name: createBundleContext<br>Error code: 401|Context.d.ts|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/
H A Djs-apidiff-ability.md694 |新增(错误码)|NA|方法名 or 属性名:createBundleContext<br>错误码内容:401|Context.d.ts|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/
H A Djs-apidiff-ability.md386 …化|类名:Context;<br>方法or属性:createBundleContext(bundleName: string): Context;<br>旧版本信息:401|类名:Context;…

12