編集

次の方法で共有


SKCloudServiceController.RequestUserToken Method

Definition

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

[Foundation.Export("requestUserTokenForDeveloperToken:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void RequestUserToken (string developerToken, Action<Foundation.NSString,Foundation.NSError> completionHandler);
abstract member RequestUserToken : string * Action<Foundation.NSString, Foundation.NSError> -> unit
override this.RequestUserToken : string * Action<Foundation.NSString, Foundation.NSError> -> unit

Parameters

developerToken
String

The JWT token to authenticate the developer.

completionHandler
Action<NSString,NSError>

A handler that receives an error, if one occurred.

Attributes

Applies to