UAJavaScriptCommand

Objective-C


@interface UAJavaScriptCommand : NSObject

Swift

class UAJavaScriptCommand : NSObject

Model object for holding data associated with JS delegate calls

UAJavaScriptCommand Properties

  • A name, derived from the host passed in the delegate call URL. This is typically the name of a command.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *name;

    Swift

    var name: String? { get }
  • The argument strings passed in the call.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSArray<NSString *> *arguments;

    Swift

    var arguments: [String]? { get }
  • The query options passed in the call.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSDictionary *options;

    Swift

    var options: [AnyHashable : Any]? { get }
  • URL

    The orignal URL that initiated the call.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSURL *_Nonnull URL;

    Swift

    var url: URL { get }

UAJavaScriptCommand Methods

  • Processes a custom delegate call URL into associated call data.

    Declaration

    Objective-C

    + (nonnull instancetype)commandForURL:(nonnull NSURL *)URL;

    Swift

    convenience init(for URL: URL)

    Parameters

    URL

    The URL to be processed.

    Return Value

    An instance of UAJavaScriptCommand.