Instance Method

initWithCode:userActivity:

Initializes a response for a play media intent.

Declaration

- (instancetype)initWithCode:(INPlayMediaIntentResponseCode)code userActivity:(NSUserActivity *)userActivity;

Parameters

code

A response code that indicates whether the app can play the media.

userActivity

A user activity that contains private state data that your Intents app extension shares with your main app.