Getting started
Setup
- Add the following library dependency to the
dependenciessection of your package.json file.
- In your manifest.toml, add the following privileges required to access the device-friendly name.
Usage
Generate UUID v4
This example demonstrates how to generate a UUID v4. The code shows a simple handler function that wraps thegenerateUuidV4() method with basic error handling. You can use this pattern to integrate into your app’s event handlers or utility functions.
Get the friendly device name
The getFriendlyDeviceName() method returns the friendly name of the device for the current persona. Returns one of the following:- The user-customized device name if it exists and the caller has the
com.amazon.devconf.privilege.identifiers.device-friendly-namerun-time privilege - The device model name in the following cases:
- No user-customized name is set
- The caller lacks the required privilege
Request run-time privileges
To acquire run-time privileges, get the consent of the user. You can open the user consent dialog by requesting run-time the “com.amazon.devconf.privilege.identifiers.device-friendly-name” privilege using the Security Manager API.Modules
- index
- turbo-modules/KeplerIdentifiersTM
- turbo-modules/KeplerIdentifiersTM
- turbo-modules/KeplerIdentifiersTMWrapper
- turbo-modules/KeplerIdentifiersTMWrapper
- types/KeplerIdentifiersDataTypes
- types/KeplerIdentifiersDataTypes

