通用 Android 转销商库
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
此页面列出了通用 Android 转销商库中提供的所有资源。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[[["\u003cp\u003eThis page provides a comprehensive list of resources available within the Common Android Reseller Library, including factory classes, objects, and methods.\u003c/p\u003e\n"],["\u003cp\u003eThe library includes factory classes for managing both Samsung and non-Samsung devices and customers via \u003ccode\u003eSamsungResellerServiceFactory\u003c/code\u003e and \u003ccode\u003eGoogleResellerServiceFactory\u003c/code\u003e respectively.\u003c/p\u003e\n"],["\u003cp\u003eKey objects within the library facilitate the management of companies, devices, operations, and errors, such as \u003ccode\u003eCompany\u003c/code\u003e, \u003ccode\u003eDevice\u003c/code\u003e, \u003ccode\u003eOperation\u003c/code\u003e, and \u003ccode\u003eError\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe library offers a range of methods to manage devices, including synchronously and asynchronously claiming or unclaiming devices, creating customer objects, and retrieving operation status.\u003c/p\u003e\n"],["\u003cp\u003eMethods are also available for listing devices by identifier or owner, and listing customers and operations within the reseller scope.\u003c/p\u003e\n"]]],["The Common Android Reseller Library provides resources for managing devices and customers. Key actions include claiming and unclaiming devices synchronously or asynchronously, creating customer objects (`Company`), and retrieving operation statuses. It offers methods to list devices by identifier or owner, and to list customers and operations. Factory classes `SamsungResellerServiceFactory` and `GoogleResellerServiceFactory` create `ResellerService` objects. The library also defines objects such as `Device`, `DeviceIdentifier`, `Operation`, `Error`, and `ErrorCode`.\n"],null,["# Common Android Reseller Library\n\nThis page lists all the resources available in the Common Android Reseller Library.\n\n| Factory classes | |\n|-------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| [`SamsungResellerServiceFactory`](/zero-touch/reseller-library/reference/factory-classes#samsungresellerservicefactory) | Factory class to create `ResellerService` objects for managing Samsung devices. |\n| [`GoogleResellerServiceFactory`](/zero-touch/reseller-library/reference/factory-classes#googleresellerservicefactory) | Factory class to create `ResellerService` objects for managing non-Samsung devices and customers. |\n\n| Objects | |\n|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------|\n| [`CompanyReference`](/zero-touch/reseller-library/reference/objects#companyreference) | Uniquely identifies a company (customer). |\n| [`Company`](/zero-touch/reseller-library/reference/objects#company) | Represents a company (customer). |\n| [`Device`](/zero-touch/reseller-library/reference/objects#device) | An Android device registered for enrollment. |\n| [`DeviceIdentifier`](/zero-touch/reseller-library/reference/objects#deviceidentifier) | Encapsulates hardware and product IDs to identify a manufacturer's device. |\n| [`Operation`](/zero-touch/reseller-library/reference/objects#operation) | The status of an asynchronous API call. |\n| [`DeviceOperationError`](/zero-touch/reseller-library/reference/objects#deviceoperationerror) | A device-specific error in an `Operation`. |\n| [`CommonException`](/zero-touch/reseller-library/reference/objects#commonexception) | An exception that can be thrown by all synchronous APIs. |\n| [`Error`](/zero-touch/reseller-library/reference/objects#error) | An object containing details about an error. |\n| [`ErrorCode`](/zero-touch/reseller-library/reference/objects#errorcode) | Common errors. |\n\n| Methods | |\n|-----------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| [`claimDevice`](/zero-touch/reseller-library/reference/methods/claimdevice) | Synchronous request to claim one device for a specified customer. |\n| [`claimDevicesAsync`](/zero-touch/reseller-library/reference/methods/claimdevicesasync) | Asynchronous request to claim up to 100,000 devices for one or more customers. |\n| [`createCustomer`](/zero-touch/reseller-library/reference/methods/createcustomer) | Creates a [`Company`](/zero-touch/reseller-library/reference/objects#company) object to uniquely identify a company (customer). |\n| [`findDevicesByDeviceIdentifier`](/zero-touch/reseller-library/reference/methods/finddevicesbydeviceidentifier) | List devices with given device identifier. |\n| [`findDevicesByOwner`](/zero-touch/reseller-library/reference/methods/finddevicesbyowner) | List of devices claimed by the specified customer or customers. |\n| [`getOperation`](/zero-touch/reseller-library/reference/methods/getoperation) | Retrieves the status of an asynchronous operation using its `operationId`. |\n| [`listCustomers`](/zero-touch/reseller-library/reference/methods/listcustomers) | List of customers associated with the reseller. |\n| [`listOperations`](/zero-touch/reseller-library/reference/methods/listoperations) | List of operations with a specified operation type and/or operation state. |\n| [`unclaimDevice`](/zero-touch/reseller-library/reference/methods/unclaimdevice) | Synchronous request to unclaim a single device for a specified customer. |\n| [`unclaimDevicesAsync`](/zero-touch/reseller-library/reference/methods/unclaimdevicesasync) | Asynchronous request to unclaim up to 100,000 devices for one or more customers. |"]]