DBMobileSharedApplication

@interface DBMobileSharedApplication : NSObject <DBSharedApplication>

Platform-specific (here, iOS) shared application.

Renders OAuth flow and implements DBSharedApplication protocol.

  • Full constructor.

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithSharedApplication:(nonnull UIApplication *)sharedApplication
                   controller:(nonnull UIViewController *)controller
                      openURL:(void (^_Nonnull)(NSURL *_Nonnull))openURL;

    Swift

    init(sharedApplication: Any!, controller: Any!, openURL: @escaping (URL) -> Void)

    Parameters

    sharedApplication

    The UIApplication with which to render the OAuth flow.

    controller

    The UIViewController with which to render the OAuth flow.

    openURL

    A wrapper around app-extension unsafe openURL call.

    Return Value

    An initialized instance.