Instance Method


Resolves the type of code requested by the user.


- (void)resolveVisualCodeTypeForGetVisualCode:(INGetVisualCodeIntent *)intent withCompletion:(void (^)(INVisualCodeTypeResolutionResult *resolutionResult))completion;



The intent object containing details of the user's request. Use this object to get the initial information, if any, provided by the user.


The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:


The resolution object containing your proposed resolution. For successful resolutions, create a resolution object whose value is the INVisualCodeType value representing the requested code type. This parameter must not be nil.


Implement this method to verify that your app supports providing a code of the specified type. If your app supports the requested code or supports only one type of code, return a resolution of success with the code type that you support. If your app does not support the requested type of visual code, provide a resolution asking the user to confirm the code type that you do support.