Share via


SKCloudServiceController.RequestUserTokenAsync(String) Method

Definition

Requests the user code for accessing personalized music content, passing the code and an error, if present, to the provided handler.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Foundation.NSString> RequestUserTokenAsync(string developerToken);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RequestUserTokenAsync : string -> System.Threading.Tasks.Task<Foundation.NSString>
override this.RequestUserTokenAsync : string -> System.Threading.Tasks.Task<Foundation.NSString>

Parameters

developerToken
String

The JWT token to authenticate the developer.

Returns

A task that represents the asynchronous RequestUserToken operation. The value of the TResult parameter is of type System.Action<Foundation.NSString,Foundation.NSError>.

Attributes

Remarks

The RequestUserTokenAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to