SKCloudServiceController.RequestUserTokenAsync(String) SKCloudServiceController.RequestUserTokenAsync(String) Method


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

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Foundation.NSString> RequestUserTokenAsync (string developerToken);
abstract member RequestUserTokenAsync : string -> System.Threading.Tasks.Task<Foundation.NSString>
override this.RequestUserTokenAsync : string -> System.Threading.Tasks.Task<Foundation.NSString>


String String

The JWT token to authenticate the developer.


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


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