UAWebViewCallData

@interface UAWebViewCallData : NSObject

Model object for holding data associated with JS delegate calls

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var options: [AnyHashable : Any]? { get set }
  • The UAWKWebViewDelegate for the webview initiating the call.

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable) id<UAWKWebViewDelegate> delegate;

    Swift

    weak var delegate: UAWKWebViewDelegate? { get set }
  • url

    The orignal URL that initiated the call.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSURL *_Nonnull url;

    Swift

    var url: URL { get set }
  • The UAInboxMessage associated with the webview.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) UAInboxMessage *message;

    Swift

    var message: UAInboxMessage? { get set }
  • Processes a custom delegate call URL into associated call data.

    Declaration

    Objective-C

    + (nonnull UAWebViewCallData *)callDataForURL:(nonnull NSURL *)url
                                         delegate:(nonnull id<UAWKWebViewDelegate>)
                                                      delegate;

    Swift

    /*not inherited*/ init(for url: URL, delegate: UAWKWebViewDelegate)

    Parameters

    url

    The URL to be processed.

    delegate

    The UAWKWebViewDelegate delegate for the webview originating the call

    Return Value

    An instance of UAWebViewCallData.

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

    Declaration

    Objective-C

    + (nonnull UAWebViewCallData *)
        callDataForURL:(nonnull NSURL *)url
              delegate:(nonnull id<UAWKWebViewDelegate>)delegate
               message:(nullable UAInboxMessage *)message;

    Swift

    /*not inherited*/ init(for url: URL, delegate: UAWKWebViewDelegate, message: UAInboxMessage?)

    Parameters

    url

    The URL to be processed.

    delegate

    The UAWKWebViewDelegate delegate for the webview originating the call

    message

    The UAInboxMessage associated with the webview.

    Return Value

    An instance of UAWebViewCallData.