鸿蒙OpenHarmony【IFAA】ArkTS API

打印 上一主题 下一主题

主题 1014|帖子 1014|积分 3042

IFAA提供移动端免密身份认证本领,实现接入IIFAA(互联网可信认证联盟)的业务免密登录,免密支付等业务场景。(注:IFAA在本文中指HarmonyOS系统免密认证模块,IIFAA在本文中指联盟及相干技术规范)
起始版本: 4.1.0(11)
导入模块

  1. import { ifaa } from '@kit.OnlineAuthenticationKit'
复制代码
getVersionSync

getVersionSync(): number
该接口用于获取IFAA免密认证接口的版本号,同步返回结果。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
返回值:
范例说明number返回IFAA免密认证的接口版本号。 示例:
  1. let res: number = ifaa.getVersionSync();
  2. // 开发者处理res
复制代码
getAnonymousIdSync

getAnonymousIdSync(userToken: Uint8Array): Uint8Array
该接口用于获取IFAA免密认证的匿名化ID,同步返回结果。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明userTokenUint8Array是唯一标识用户的id。 返回值:
范例说明Uint8Array返回IFAA免密认证的匿名化ID。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;此处arg需要开发者替换为真实入参。
  2. let arg = new Uint8Array([0]);
  3. let getAnonIdResult: Uint8Array = ifaa.getAnonymousIdSync(arg);
  4. // 开发者处理getAnonIdResult ....
复制代码
getAnonymousId

getAnonymousId(userToken: Uint8Array): Promise
该接口用于获取IFAA免密认证的匿名化ID,使用Promise异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明userTokenUint8Array是唯一标识用户的id。 返回值:
范例说明PromisePromise对象,返回匿名化ID。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;此处arg需要开发者替换为真实入参。
  3. let arg = new Uint8Array([0]);
  4. let getAnonIdPromise: Promise<Uint8Array> = ifaa.getAnonymousId(arg);
  5. getAnonIdPromise.then(result => {
  6.   console.info("Succeeded in doing getAnonymousId.");
  7.   // 开发者处理result
  8. }).catch((err: BusinessError) => {
  9.   console.error(`Failed to call getAnonymousId. Code: ${err.code}, message: ${err.message}`);
  10. });
复制代码
getAnonymousId

getAnonymousId(userToken: Uint8Array, callback: AsyncCallback): void
该接口用于获取IFAA免密认证的匿名化ID,使用Callback异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明userTokenUint8Array是唯一标识用户的id。callbackAsyncCallback是回调函数,用于获取返回数据。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;此处arg需要开发者替换为真实入参。
  3. let arg = new Uint8Array([0]);
  4. ifaa.getAnonymousId(arg,
  5.   (err: BusinessError, result: Uint8Array) => {
  6.     if (err) {
  7.        console.error(`Failed to call getAnonymousId. Code: ${err.code}, message: ${err.message}`);
  8.     } else {
  9.       console.info("Succeeded in doing getAnonymousId.");
  10.       // 开发者处理result
  11.     }
  12.   });
复制代码
queryStatusSync

queryStatusSync(userToken: Uint8Array): boolean
该接口用于查询IFAA免密认证的开通状态,同步返回结果。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明userTokenUint8Array是唯一标识用户的id。 返回值:
范例说明boolean返回IFAA免密认证的开通状态。true代表已开通,false代表未开通。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;此处arg需要开发者替换为真实入参。
  2. let arg = new Uint8Array([0]);
  3. let status: boolean = ifaa.queryStatusSync(arg);
  4. if (status) {
  5.   console.info("ifaa registered");
  6. } else {
  7.   console.info("ifaa deregistered");
  8. }
复制代码
queryStatus

queryStatus(userToken: Uint8Array): Promise
该接口用于查询IFAA免密认证的开通状态,使用Promise异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明userTokenUint8Array是唯一标识用户的id。 返回值:
范例说明PromisePromise对象,true代表已开通,false代表未开通。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;arg需要开发者替换为真实入参。
  3. let arg = new Uint8Array([0]);
  4. let promise: Promise<boolean> = ifaa.queryStatus(arg);
  5. promise.then(result => {
  6.   console.info("Succeeded in doing queryStatus.");
  7.   // 开发者处理result
  8. }).catch((err: BusinessError) => {
  9.   console.error(`Failed to call queryStatus. Code: ${err.code}, message: ${err.message}`);
  10. });
复制代码
queryStatus

queryStatus(userToken: Uint8Array, callback: AsyncCallback): void
该接口用于查询IFAA免密认证的开通状态,使用Callback异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明userTokenUint8Array是唯一标识用户的id。callbackAsyncCallback是回调函数,用于获取开通状态,true代表已开通,false代表未开通。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;此处arg需要开发者替换为真实入参。
  3. let arg = new Uint8Array([0]);
  4. ifaa.queryStatus(arg,
  5.   (err: BusinessError, result: boolean) => {
  6.     if (err) {
  7.       console.error(`Failed to call queryStatus. Code: ${err.code}, message: ${err.message}`);
  8.     } else {
  9.       console.info("Succeeded in doing queryStatus.");
  10.       // 开发者处理result
  11.     }
  12.   });
复制代码
register

register(registerData: Uint8Array): Promise
该接口用于开通IFAA免密认证,使用Promise异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明registerDataUint8Array是IIFAA服务器下发的tlv格式的开通数据。 返回值:
范例说明PromisePromise对象,返回开通数据。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;arg需要开发者替换为真实入参。
  3. let arg = new Uint8Array([0]);
  4. let registerPromise: Promise<Uint8Array> = ifaa.register(arg);
  5. registerPromise.then(registerResult => {
  6.   console.info("Succeeded in doing register.");
  7.   // 开发者处理registerResult
  8. }).catch((err: BusinessError) =>{
  9.   console.error(`Failed to call register. Code: ${err.code}, message: ${err.message}`);
  10. });
复制代码
register

register(registerData: Uint8Array, callback: AsyncCallback): void
该接口用于开通IFAA免密认证,使用Callback异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明registerDataUint8Array是IIFAA服务器下发的tlv格式的开通数据。callbackAsyncCallback是回调函数,用于获取返回数据。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;此处arg需要开发者替换为真实入参。
  3. let arg = new Uint8Array([0]);
  4. ifaa.register(arg, (err: BusinessError, registerResult: Uint8Array) => {
  5.   if (err) {
  6.     console.error(`Failed to call register. Code: ${err.code}, message: ${err.message}`);
  7.   } else {
  8.     console.info("Succeeded in doing register.");
  9.     //开发者处理registerResult ....
  10.   }
  11. });
复制代码
preAuthSync

preAuthSync(): Uint8Array
该接口用于获取IFAA免密认证的预认证参数,同步返回结果。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
返回值:
范例说明Uint8Array返回IFAA免密认证的预认证参数,其中存在用于后续进行生物认证时所需的挑战值(challenge)。 错误码ID错误信息1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. let preAuthResult: Uint8Array = ifaa.preAuthSync();
  2. // 开发者处理preAuthResult
复制代码
preAuth

preAuth(): Promise
该接口用于获取IFAA免密认证的预认证参数,使用Promise异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
返回值:
范例说明PromisePromise对象,返回预认证数据。 错误码ID错误信息1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. let preAuthPromise: Promise<Uint8Array> = ifaa.preAuth();
  3. preAuthPromise.then(preAuthResult => {
  4.   console.info("Succeeded in doing preAuth.");
  5.   // 开发者处理preAuthResult ....
  6. }).catch((err: BusinessError) =>{
  7.   console.error(`Failed to call preAuth. Code: ${err.code}, message: ${err.message}`);
  8. });
复制代码
preAuth

preAuth(callback: AsyncCallback): void
该接口用于获取IFAA免密认证的预认证参数,使用Callback异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明callbackAsyncCallback是回调函数,用于获取返回预认证数据 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. ifaa.preAuth(
  3.   (err: BusinessError, preAuthResult:Uint8Array) => {
  4.     if (err) {
  5.       console.error(`Failed to call preAuth. Code: ${err.code}, message: ${err.message}`);
  6.     } else {
  7.       console.info("Succeeded in doing preAuth.");
  8.       // 开发者处理preAuthResult..
  9.     }
  10.   });
复制代码
authSync

authSync(authToken: Uint8Array, authData: Uint8Array): Uint8Array
该接口用于IFAA免密认证,同步返回结果。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明authTokenUint8Array是用户身份认证通过的凭证(通过用户认证模块可获取,调用@ohos.userIAM.userAuth的getUserAuthInstance)。authDataUint8Array是IIFAA服务器下发的tlv格式的认证数据。 返回值:
范例说明Uint8Array返回tlv格式的认证结果。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. // 开发者调用@ohos.userIAM.userAuth的getUserAuthInstance获取token;token需要开发者替换为真实入参。
  2. let token = new Uint8Array([0]);
  3. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;arg需要开发者替换为真实入参。
  4. let arg = new Uint8Array([0]);
  5. let authResult: Uint8Array = ifaa.authSync(token, arg);
  6. // 开发者处理authResult ....
复制代码
auth

auth(authToken: Uint8Array, authData: Uint8Array): Promise
该接口用于IFAA免密认证,使用Promise异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明authTokenUint8Array是用户身份认证通过的凭证(通过用户认证模块可获取,调用@ohos.userIAM.userAuth的getUserAuthInstance)。authDataUint8Array是IIFAA服务器下发的tlv格式的认证数据。 返回值:
范例说明PromisePromise对象,返回tlv格式的认证结果。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. // 开发者调用@ohos.userIAM.userAuth的getUserAuthInstance获取token;token需要开发者替换为真实入参。
  3. let token = new Uint8Array([0]);
  4. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;arg需要开发者替换为真实入参。
  5. let arg = new Uint8Array([0]);
  6. let authPromise: Promise<Uint8Array> = ifaa.auth(token, arg);
  7. authPromise.then(authResult => {
  8.   console.info("Succeeded in doing auth.");
  9.   // 开发者处理authResult ....
  10. }).catch((err: BusinessError) =>{
  11.   console.error(`Failed to call auth. Code: ${err.code}, message: ${err.message}`);
  12. });
复制代码
auth

auth(authToken: Uint8Array, authData: Uint8Array, callback: AsyncCallback): void
该接口用于IFAA免密认证,使用Callback异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明authTokenUint8Array是用户身份认证通过的凭证(通过用户认证模块可获取,调用@ohos.userIAM.userAuth的getUserAuthInstance)。authDataUint8Array是IIFAA服务器下发的tlv格式的认证数据。callbackAsyncCallback是回调函数,用于获取返回数据。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. // 开发者调用@ohos.userIAM.userAuth的getUserAuthInstance获取token;token需要开发者替换为真实入参。
  3. let token = new Uint8Array([0]);
  4. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;arg需要开发者替换为真实入参。
  5. let arg = new Uint8Array([0]);
  6. ifaa.auth(token, arg,
  7.   (err: BusinessError, authResult: Uint8Array) => {
  8.     if (err) {
  9.       console.error(`Failed to call auth. Code: ${err.code}, message: ${err.message}`);
  10.     } else {
  11.       console.info("Succeeded in doing auth.");
  12.       // 开发者处理authResult ....
  13.     }
  14.   });
复制代码
deregisterSync

deregisterSync(deregisterData: Uint8Array): void
该接口用于关闭IFAA免密认证,同步返回结果。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明deregisterDataUint8Array是IIFAA服务器下发的tlv格式的关闭数据。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;arg需要开发者替换为真实入参。
  2. let arg = new Uint8Array([0]);
  3. ifaa.deregisterSync(arg);
复制代码
deregister

deregister(deregisterData: Uint8Array): Promise
该接口用于关闭IFAA免密认证,使用Promise异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明deregisterDataUint8Array是IIFAA服务器下发的tlv格式的关闭数据。 返回值:
范例说明PromisePromise对象,无返回结果的Promise对象。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;arg需要开发者替换为真实入参。
  3. let arg = new Uint8Array([0]);
  4. let promise: Promise<void> = ifaa.deregister(arg);
  5. promise.then(()=> {
  6.   console.info("Succeeded in doing deregister.");
  7. }).catch((err: BusinessError) => {
  8.   console.error(`Failed to call deregister. Code: ${err.code}, message: ${err.message}`);
  9. });
复制代码
deregister

deregister(deregisterData: Uint8Array, callback: AsyncCallback): void
该接口用于关闭IFAA免密认证,使用Callback异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明deregisterDataUint8Array是IIFAA服务器下发的tlv格式的关闭数据。callbackAsyncCallback是回调函数。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. // 开发者需要按照IIFAA的TLV格式构造入参,并转换为Uint8Array参数;此处arg需要开发者替换为真实入参。
  3. let arg = new Uint8Array([0]);
  4. ifaa.deregister(arg,
  5.   (err: BusinessError) => {
  6.     if (err) {
  7.       console.error(`Failed to call deregister. Code: ${err.code}, message: ${err.message}`);
  8.     } else {
  9.       console.info("Succeeded in doing deregister.");
  10.     }
  11. });
复制代码
getProtocolVersionSync

getProtocolVersionSync(): Uint8Array
该接口用于获取IFAA免密认证的协议版本号,同步返回结果。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
返回值:
范例说明Uint8Array返回IFAA免密认证的协议版本号。 错误码ID错误信息1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. let res: Uint8Array = ifaa.getProtocolVersionSync();
复制代码
getProtocolVersion

getProtocolVersion(): Promise
该接口用于获取IFAA免密认证的协议版本号,使用Promise异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
返回值:
范例说明PromisePromise对象,返回协议版本号。 错误码ID错误信息1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. let promise: Promise<Uint8Array> = ifaa.getProtocolVersion();
  3. promise.then(result => {
  4.   console.info("Succeeded in doing getProtocolVersion.");
  5.   //开发者处理result
  6. }).catch((err: BusinessError) => {
  7.   console.error(`Failed to call getProtocolVersion. Code: ${err.code}, message: ${err.message}`);
  8. });
复制代码
getProtocolVersion

getProtocolVersion(callback: AsyncCallback): void
该接口用于获取IFAA免密认证的协议版本号,使用Callback异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明callbackAsyncCallback是回调函数,用于获取返回数据。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. ifaa.getProtocolVersion(
  3.   (err: BusinessError, result: Uint8Array) => {
  4.     if (err) {
  5.       console.error(`Failed to call getProtocolVersion. Code: ${err.code}, message: ${err.message}`);
  6.     } else {
  7.       console.info("Succeeded in doing getProtocolVersion.");
  8.       //开发者处理result
  9.     }
  10.   });
复制代码
getSupportedCertTypesSync

getSupportedCertTypesSync(): Uint8Array
该接口用于获取IFAA免密认证支持的证书格式,同步返回结果。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
返回值:
范例说明Uint8Array返回IFAA免密认证支持的证书格式。 错误码ID错误信息401Parameter error.1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. let result: Uint8Array = ifaa.getSupportedCertTypesSync();
  2. //开发者处理result
复制代码
getSupportedCertTypes

getSupportedCertTypes(): Promise
该接口用于获取IFAA免密认证支持的证书格式,使用Promise异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
返回值:
范例说明PromisePromise对象,返回支持的证书格式。 错误码ID错误信息1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. let promise: Promise<Uint8Array> = ifaa.getSupportedCertTypes();
  3. promise.then(result => {
  4.   console.info("Succeeded in doing getSupportedCertTypes.");
  5.   //开发者处理result
  6. }).catch((err: BusinessError) => {
  7.   console.error(`Failed to call getSupportedCertTypes. Code: ${err.code}, message: ${err.message}`);
  8. });
复制代码
getSupportedCertTypes

getSupportedCertTypes(callback: AsyncCallback): void
该接口用于获取IFAA免密认证支持的证书格式,使用Callback异步回调。
元服务API 从版本5.0.0(12)开始,该接口支持在元服务中使用。
系统本领: SystemCapability.Security.Ifaa
起始版本: 4.1.0(11)
参数:
参数名范例必填说明callbackAsyncCallback是回调函数,用于获取返回数据。 错误码ID错误信息1006100001System Interruption.1006100002The service is abnormal. 示例:
  1. import { BusinessError } from '@kit.BasicServicesKit'
  2. ifaa.getSupportedCertTypes(
  3.   (err: BusinessError, result: Uint8Array) => {
  4.     if (err) {
  5.       console.error(`Failed to call getSupportedCertTypes. Code: ${err.code}, message: ${err.message}`);
  6.     } else {
  7.       console.info("Succeeded in doing getSupportedCertTypes.");
  8.       //开发者处理result
  9.     }
  10.   });
复制代码
据悉,目前已有超过5000款应用启动了原生鸿蒙开发,而华为设定的目的是支持50万+应用。这一目的的实现,将直接催生百万级的人才缺口,为市场带来超过300万个潜在新就业岗位。

避免浪费时间!!新入门的人在学习鸿蒙的过程,通常会在网上搜索资料;但险些都是七零八碎比力杂乱,而官网的文档比力笼统。这无疑增加了时间成本。对此录制了一套鸿蒙基础进阶视频(HarmonyOS NEXT)开发入门&实战教学视频200集+
鸿蒙 (HarmonyOS NEXT)开发入门&实战教学视频←嗱娶

另外还根据鸿蒙官方发布的文档联合华为内部人员分享,经过反复修改整理得出的一整套鸿蒙南北向(HarmonyOS NEXT)学习手册共计3000页+)想要进阶鸿蒙的开发者有福了!
内容包含了:(ArkTS、ArkUI、Stage模型、多端摆设、分布式应用开发、音频、视频、WebGL、OpenHarmony多媒体技术、Napi组件、OpenHarmony内核、鸿蒙南向开发、鸿蒙项目实战)等技术知识点。资助大家在学习鸿蒙路上少走弯路!
鸿蒙 (HarmonyOS NEXT)南北向开发基础与实战手册←嗱娶

华为鸿蒙——作为新“红海”的技术方向,一个正处在高速发展前期的技术领域,时间来到本年6月,在华为HDC 2024中;全栈自研鸿蒙NEXT(Beta内测)登场,到如今8月的(Beta3版)全面开放。真正做到了那四个字“遥遥领先”!
鸿蒙作为新技术,目前懂的人很少;像这样的领域,往往需求大,但符合需求的技术人才却少,供小于求,自然竞争没有那么激烈。且会有更优厚的薪酬。

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

天空闲话

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表