activateOsAccount(localId: number, callback: AsyncCallback<void>): void;
|
Activates an OS account. This method uses an asynchronous callback to return the result.
|
activateOsAccount(localId: number): Promise<void>;
|
Activates an OS account. This method uses a promise to return the result.
|
isMultiOsAccountEnable(callback: AsyncCallback<boolean>): void;
|
Checks whether multiple OS accounts are supported. This method uses an asynchronous callback to return the result.
|
isMultiOsAccountEnable(): Promise<boolean>;
|
Checks whether multiple OS accounts are supported. This method uses a promise to return the result.
|
isOsAccountActived(localId: number, callback: AsyncCallback<boolean>): void;
|
Checks whether an OS account is activated. This method uses an asynchronous callback to return the result.
|
isOsAccountActived(localId: number): Promise<boolean>;
|
Checks whether an OS account is activated. This method uses a promise to return the result.
|
isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback<boolean>): void;
|
Checks whether an OS account has the given constraints. This method uses an asynchronous callback to return the result.
|
isOsAccountConstraintEnable(localId: number, constraint: string): Promise<boolean>;
|
Checks whether an OS account has the given constraints. This method uses a promise to return the result.
|
isTestOsAccount(callback: AsyncCallback<boolean>): void;
|
Checks whether this OS account is a test account. This method uses an asynchronous callback to return the result.
|
isTestOsAccount(): Promise<boolean>;
|
Checks whether this OS account is a test account. This method uses a promise to return the result.
|
isOsAccountVerified(callback: AsyncCallback<boolean>): void;
|
Checks whether this OS account has been verified. This method uses an asynchronous callback to return the result.
|
isOsAccountVerified(localId: number, callback: AsyncCallback<boolean>): void;
|
Checks whether an OS account has been verified. This method uses an asynchronous callback to return the result.
|
isOsAccountVerified(localId?: number): Promise<boolean>;
|
Checks whether an OS account has been verified. This method uses a promise to return the result.
|
removeOsAccount(localId: number, callback: AsyncCallback<void>): void;
|
Deletes an OS account. This method uses an asynchronous callback to return the result.
|
removeOsAccount(localId: number): Promise<void>;
|
Deletes an OS account. This method uses a promise to return the result.
|
setOsAccountConstraints(localId: number, constraints: Array<string>, enable: boolean, callback: AsyncCallback<void>): void;
|
Sets constraints for an OS account. This method uses an asynchronous callback to return the result.
|
setOsAccountConstraints(localId: number, constraints: Array<string>, enable: boolean): Promise<void>;
|
Sets constraints for an OS account. This method uses a promise to return the result.
|
setOsAccountName(localId: number, localName: string, callback: AsyncCallback<void>): void;
|
Sets a name for an OS account. This method uses an asynchronous callback to return the result.
|
setOsAccountName(localId: number, localName: string): Promise<void>;
|
Sets a name for an OS account. This method uses a promise to return the result.
|
getCreatedOsAccountsCount(callback: AsyncCallback<number>): void;
|
Obtains the number of OS accounts created. This method uses an asynchronous callback to return the result.
|
getCreatedOsAccountsCount(): Promise<number>;
|
Obtains the number of OS accounts created. This method uses a promise to return the result.
|
getOsAccountLocalIdFromProcess(callback: AsyncCallback<number>): void;
|
Obtain the ID of the OS account to which the current process belongs. This method uses an asynchronous callback to return the result.
|
getOsAccountLocalIdFromProcess(): Promise<number>;
|
Obtain the ID of the OS account to which the current process belongs. This method uses a promise to return the result.
|
getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback<number>): void;
|
Obtains the OS account ID based on the process UID. This method uses an asynchronous callback to return the result.
|
getOsAccountLocalIdFromUid(uid: number): Promise<number>;
|
Obtains the OS account ID based on the process UID. This method uses a promise to return the result.
|
getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback<number>): void;
|
Obtains the OS account ID based on the domain information. This method uses an asynchronous callback to return the result.
|
getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise<number>;
|
Obtains the OS account ID based on the domain information. This method uses a promise to return the result.
|
queryMaxOsAccountNumber(callback: AsyncCallback<number>): void;
|
Obtains the maximum number of OS accounts that can be created. This method uses an asynchronous callback to return the result.
|
queryMaxOsAccountNumber(): Promise<number>;
|
Obtains the maximum number of OS accounts that can be created. This method uses a promise to return the result.
|
getOsAccountAllConstraints(localId: number, callback: AsyncCallback<Array<string>>): void;
|
Obtains all constraints of an OS account. This method uses an asynchronous callback to return the result.
|
getOsAccountAllConstraints(localId: number): Promise<Array<string>>;
|
Obtains all constraints of an OS account. This method uses a promise to return the result.
|
queryAllCreatedOsAccounts(callback: AsyncCallback<Array<OsAccountInfo>>): void;
|
Obtains information about all the OS accounts created. This method uses an asynchronous callback to return the result.
|
queryAllCreatedOsAccounts(): Promise<Array<OsAccountInfo>>;
|
Obtains information about all the OS accounts created. This method uses a promise to return the result.
|
createOsAccount(localName: string, type: OsAccountType, callback: AsyncCallback<OsAccountInfo>): void;
|
Creates an OS account. This method uses an asynchronous callback to return the result.
|
createOsAccount(localName: string, type: OsAccountType): Promise<OsAccountInfo>;
|
Creates an OS account. This method uses a promise to return the result.
|
createOsAccountForDomain(type: OsAccountType, domainInfo: DomainAccountInfo, callback: AsyncCallback<OsAccountInfo>): void;
|
Creates an OS account based on the domain information and binds this OS account to the domain. This method uses an asynchronous callback to return the result.
|
createOsAccountForDomain(type: OsAccountType, domainInfo: DomainAccountInfo): Promise<OsAccountInfo>;
|
Creates an OS account based on the domain information and binds this OS account to the domain. This method uses a promise to return the result.
|
queryCurrentOsAccount(callback: AsyncCallback<OsAccountInfo>): void;
|
Obtains information about the OS account to which this process belongs. This method uses an asynchronous callback to return the result.
|
queryCurrentOsAccount(): Promise<OsAccountInfo>;
|
Obtains information about the OS account to which this process belongs. This method uses a promise to return the result.
|
queryOsAccountById(localId: number, callback: AsyncCallback<OsAccountInfo>): void;
|
Obtains information about an OS account based on the account ID. This method uses an asynchronous callback to return the result.
|
queryOsAccountById(localId: number): Promise<OsAccountInfo>;
|
Obtains information about an OS account based on the account ID. This method uses a promise to return the result.
|
getOsAccountTypeFromProcess(callback: AsyncCallback<OsAccountType>): void;
|
Obtains the type of the OS account to which the current process belongs. This method uses an asynchronous callback to return the result.
|
getOsAccountTypeFromProcess(): Promise<OsAccountType>;
|
Obtains the type of the OS account to which the current process belongs. This method uses a promise to return the result.
|
getDistributedVirtualDeviceId(callback: AsyncCallback<string>): void;
|
Obtains the distributed virtual device ID. This method uses an asynchronous callback to return the result.
|
getDistributedVirtualDeviceId(): Promise<string>;
|
Obtains the distributed virtual device ID. This method uses a promise to return the result.
|
getOsAccountProfilePhoto(localId: number, callback: AsyncCallback<string>): void;
|
Obtains the profile picture of an OS account. This method uses an asynchronous callback to return the result.
|
getOsAccountProfilePhoto(localId: number): Promise<string>;
|
Obtains the profile picture of an OS account. This method uses a promise to return the result.
|
setOsAccountProfilePhoto(localId: number, photo: string, callback: AsyncCallback<void>): void;
|
Sets a profile picture for an OS account. This method uses an asynchronous callback to return the result.
|
setOsAccountProfilePhoto(localId: number, photo: string): Promise<void>;
|
Sets a profile picture for an OS account. This method uses a promise to return the result.
|
getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback<number>): void;
|
Obtains the ID of the OS account associated with the specified SN. This method uses an asynchronous callback to return the result.
|
getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise<number>;
|
Obtains the ID of the OS account associated with the specified SN. This method uses a promise to return the result.
|
getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback<number>): void;
|
Obtains the SN based on the specified OS account ID. This method uses an asynchronous callback to return the result.
|
getSerialNumberByOsAccountLocalId(localId: number): Promise<number>;
|
Obtains the SN based on the specified OS account ID. This method uses a promise to return the result.
|
on(type: 'activate' | 'activating', name: string, callback: Callback<number>): void;
|
Subscribes to the changes in OS accounts.
|
off(type: 'activate' | 'activating', name: string, callback?: Callback<number>): void;
|
Unsubscribes from the changes in OS accounts.
|