PayApiAvailabilityStatus
Stay organized with collections
Save and categorize content based on your preferences.
Pay API availability status on the device.
Constant Summary
int |
AVAILABLE
|
Indicates that the Pay API requested is
available and ready to be used. |
int |
NOT_ELIGIBLE
|
Indicates that the user is currently not
eligible for using the Pay API requested. |
Inherited Method Summary
From interface java.lang.annotation.Annotation
Constants
public static final int
AVAILABLE
Indicates that the Pay API requested is available and ready to be used.
Constant Value:
0
public static final int
NOT_ELIGIBLE
Indicates that the user is currently not eligible for using the Pay API requested.
The user may become eligible in the future.
Constant Value:
2
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003ePayApiAvailabilityStatus\u003c/code\u003e is an annotation that provides the status of the Google Pay API on a device.\u003c/p\u003e\n"],["\u003cp\u003eIt defines two constants: \u003ccode\u003eAVAILABLE\u003c/code\u003e (API is ready to use) and \u003ccode\u003eNOT_ELIGIBLE\u003c/code\u003e (user is currently ineligible).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAVAILABLE\u003c/code\u003e is represented by the integer value 0, and \u003ccode\u003eNOT_ELIGIBLE\u003c/code\u003e is represented by the integer value 2.\u003c/p\u003e\n"]]],["The `PayApiAvailabilityStatus` interface defines the availability of a Pay API on a device. It provides two integer constants: `AVAILABLE` (value 0), signifying the API is ready for use, and `NOT_ELIGIBLE` (value 2), indicating the user is currently ineligible, but might become eligible later. This interface implements `Annotation` and provides methods such as `annotationType`, `equals`, `hashCode`, and `toString`. These constants provide status of whether a pay API is ready for use.\n"],null,["# PayApiAvailabilityStatus\n\npublic abstract @interface **PayApiAvailabilityStatus** implements [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html) \nPay API availability status on the device. \n\n### Constant Summary\n\n|-----|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| int | [AVAILABLE](/android/reference/com/google/android/gms/pay/PayApiAvailabilityStatus#AVAILABLE) | Indicates that the Pay API requested is available and ready to be used. |\n| int | [NOT_ELIGIBLE](/android/reference/com/google/android/gms/pay/PayApiAvailabilityStatus#NOT_ELIGIBLE) | Indicates that the user is currently not eligible for using the Pay API requested. |\n\n### Inherited Method Summary\n\nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| abstract [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c? extends [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html)\\\u003e | annotationType() |\n| abstract boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| abstract int | hashCode() |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n\nConstants\n---------\n\n#### public static final int\n**AVAILABLE**\n\nIndicates that the Pay API requested is available and ready to be used. \nConstant Value: 0 \n\n#### public static final int\n**NOT_ELIGIBLE**\n\nIndicates that the user is currently not eligible for using the Pay API requested.\nThe user may become eligible in the future. \nConstant Value: 2"]]