MultipleDevicesAndHoldersAllowedStatus
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
說明核發機構偏好設定,說明錢包是否應允許在多部使用者和多部裝置之間共用及儲存相同的票證物件。
列舉 |
STATUS_UNSPECIFIED |
未指定偏好設定。 |
MULTIPLE_HOLDERS |
使用者可以共用票證物件,且可由任意數量的使用者和不限數量的裝置儲存。一般來說,合作夥伴會在票證上套用這項設定,不必限制單一使用者或只能固定至單一裝置。 |
ONE_USER_ALL_DEVICES |
物件只能由一位使用者儲存,但這位使用者可以在自己的多部裝置上查看及使用物件。第一位使用者儲存物件後,其他使用者就無法查看或儲存該物件。 |
ONE_USER_ONE_DEVICE |
每個物件只能由一位使用者儲存在一部裝置上。在少數情況下,適用於特定合作夥伴。舉例來說,大眾運輸票券應設為「已固定裝置」,表示只有單一使用者在一部裝置上才能儲存、查看及使用票證。詳情請洽詢支援團隊。 |
multipleHolders |
MULTIPLE_HOLDERS 的舊版別名,已淘汰。
|
oneUserAllDevices |
ONE_USER_ALL_DEVICES 的舊版別名,已淘汰。
|
oneUserOneDevice |
ONE_USER_ONE_DEVICE 的舊版別名,已淘汰。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThis document outlines the issuer's preference for whether a Wallet pass object can be shared and saved across multiple users and devices.\u003c/p\u003e\n"],["\u003cp\u003eThree main sharing options are available: \u003ccode\u003eMULTIPLE_HOLDERS\u003c/code\u003e (shareable by any user on any device), \u003ccode\u003eONE_USER_ALL_DEVICES\u003c/code\u003e (one user, multiple devices), and \u003ccode\u003eONE_USER_ONE_DEVICE\u003c/code\u003e (one user, one device).\u003c/p\u003e\n"],["\u003cp\u003eLegacy aliases for these options (e.g., \u003ccode\u003emultipleHolders\u003c/code\u003e) are deprecated and should not be used.\u003c/p\u003e\n"]]],["The core content details issuer preferences for pass object sharing. `MULTIPLE_HOLDERS` allows any number of users to save the pass on multiple devices. `ONE_USER_ALL_DEVICES` restricts the pass to one user, usable across their devices. `ONE_USER_ONE_DEVICE` limits the pass to a single user and device. `STATUS_UNSPECIFIED` means the preference isn't defined. Legacy aliases for these options, multipleHolders, oneUserAllDevices, and oneUserOneDevice, are deprecated.\n"],null,["# MultipleDevicesAndHoldersAllowedStatus\n\nClarifies the issuer preference for whether Wallet should allow the same pass object to be shared and saved among more than one user and more than one device.\n\n| Enums ||\n|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `STATUS_UNSPECIFIED` | Unspecified preference. |\n| `MULTIPLE_HOLDERS` | The Pass object is shareable by a user and can be saved by any number of different users, and on any number of devices. Partners typically use this setup for passes that do not need to be restricted to a single user or pinned to a single device. |\n| `ONE_USER_ALL_DEVICES` | An object can only be saved by one user, but this user can view and use it on multiple of their devices. Once the first user saves the object, no other user will be allowed to view or save it. |\n| `ONE_USER_ONE_DEVICE` | An object can only be saved by one user on a single device. Intended for use by select partners in limited circumstances. An example use case is a transit ticket that should be \"device pinned\", meaning it can be saved, viewed and used only by a single user on a single device. Contact support for additional information. |\n| `multipleHolders` | Legacy alias for `MULTIPLE_HOLDERS`. Deprecated. | This item is deprecated! |\n| `oneUserAllDevices` | Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated. | This item is deprecated! |\n| `oneUserOneDevice` | Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated. | This item is deprecated! |"]]