Instance Method

handleAddMedia:completion:

Handles the media addition request.

Required.

Declaration

- (void)handleAddMedia:(INAddMediaIntent *)intent completion:(void (^)(INAddMediaIntentResponse *response))completion;

Parameters

intent

The INAddMediaIntent object that contains details about the user's request. The Intents app extension confirms the information in this intent before the system calls the handlePlayMedia:completion: method.

completion

The handler block to execute with your response. You must execute this handler while implementing this method. This handler has no return value and takes the following parameter:

response

The INAddMediaIntentResponse object you create to report the status of the request. This parameter must not be nil.

Discussion

Implement this method to add the media item to the appropriate destination.