Platforms to show: All Mac Windows Linux Cross-Platform

Back to DCDeviceMBS class.

DCDeviceMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method System MBS iOS Plugin 23.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor.

Initializes the object pointing to the current device one internally.

DCDeviceMBS.generateToken(CompleteHandler as GenerateTokenCompletedMBS, tag as variant = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method System MBS iOS Plugin 23.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Generates a token that identifies the current device.

Calls GenerateTokenCompletedMBS event later when done.

Your server uses the generated token in its requests to get or set the persistent bits for the current device. You should treat the token you receive in the completion block as single-use. Although the token remains valid long enough for your server to retry a specific request if necessary, you should not use a token multiple times. Instead, use this method to generate a new token.

The app you use to generate the token must be associated with your developer account; otherwise, the generation request fails.

Some examples using this method:

The items on this page are in the following plugins: MBS iOS Plugin.


The biggest plugin in space...