harmony 鸿蒙Account Subsystem Changelog

  • 2025-06-12
  • 浏览 (23)

Account Subsystem Changelog

cl.account_os_account.1 Change of .onAcquireInfo Parameters

Access Level

System API

Reason for Change

The ArkTS syntax does not support the any type.

Change Impact

This change is a non-compatible change. Compilation problems may occur if you do not use the new API.

API Level

8

Change Since

OpenHarmony SDK OpenHarmony_4.1.6.2

Key API/Component Changes

Before the change:

    interface IUserAuthCallback  {
        ...
        onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void;
        ...
    }

    interface IIdmCallback   {
        ...
        onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void;
        ...
    }

After the change:

    interface IUserAuthCallback  {
        ...
        onAcquireInfo?: (module: number, acquire: number, extraInfo: Uint8Array) => void;
        ...
    }

    interface IIdmCallback   {
        ...
        onAcquireInfo?: (module: number, acquire: number, extraInfo: Uint8Array) => void;
        ...
    }

Adaptation Guide

Define the onAcquireInfo callback based on the new interface prototype.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Subsystem Changelog

harmony 鸿蒙ArkCompiler Subsystem Changelog

harmony 鸿蒙ArkUI Subsystem Changelog

harmony 鸿蒙Bundle Manager Subsystem Changelog

harmony 鸿蒙User IAM Subsystem Changelog

0  赞