IntentsContext

Objective-C


@interface IntentsContext : NSObject

Swift

class IntentsContext : NSObject

An object that manages url intents strings.

  • Return singleton instance.

    Declaration

    Objective-C

    + (nonnull IntentsContext *)sharedInstance;

    Swift

    class func sharedInstance() -> IntentsContext
  • The prefix for intent.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nonnull prefix;

    Swift

    var prefix: String { get set }
  • Handle intent.

    Declaration

    Objective-C

    - (void)processIntent:(nonnull NSString *)intent
        completionHandler:
            (nonnull void (^)(LandmarkObject *_Nonnull, IntentHandlerType))handler;

    Swift

    func processIntent(_ intent: String) async -> (LandmarkObject, IntentHandlerType)