We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesWallet KitClient APIscom.huawei.hms.wallet.passPassStatus

PassStatus

CLASS info
public final class PassStatus implements Parcelable
Sets the status of the current pass.

Field Summary

TypeNameDesc
public static final Creator< PassStatus> CREATORCREATOR

Instantiates the static object to implement

Parcelable.Creator.

Nested Class Summary

TypeNameDesc
classPassStatus.BuilderAssigns the PassStatus value using the builder method.

Public Method Summary

Return typeMethod name
String

getState()

Obtains the status of the current pass. Options:WalletPassConstant. PASS_STATE_COMPLETED;WalletPassConstant. PASS_STATE_EXPIRED;WalletPassConstant. PASS_STATE_INACTIVE;WalletPassConstant. PASS_STATE_ACTIVE;

String

getEffectTime()

Obtains the time when the pass takes effect, in UTC format:yyyy-MM-ddTHH:mm:ss.SSSZ

String

getExpireTime()

Obtains the time when the pass expires, in UTC format:yyyy-MM-ddTHH:mm:ss.SSSZ

PassStatus.Builder

getBuilder()

Instantiates PassStatus.Builder.

Public Method

Method

public String getState()

Obtains the status of the current pass.

Return

Typedesc
StringPass status.
Method

public String getEffectTime()

Obtains the time when the current pass takes effect.

Return

Typedesc
StringEffective time.
Method

public String getExpireTime()

Obtains the time when the current pass expires.

Return

Typedesc
StringExpiration time.
Method

public static Builder getBuilder()

Instantiates PassStatus.Builder.

Return

Typedesc
StringInstantiated PassStatus.Builder.
This page may contain third-party content. For details, click here.