DBDesktopSharedApplication

@interface DBDesktopSharedApplication : NSObject <DBSharedApplication>

Platform-specific (here, macOS) shared application.

Renders OAuth flow and implements DBSharedApplication protocol.

  • Full constructor.

    Declaration

    Objective-C

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

    Swift

    init(sharedApplication: NSWorkspace, controller: NSViewController, openURL: @escaping (URL) -> Void)

    Parameters

    sharedApplication

    The NSWorkspace with which to render the OAuth flow.

    controller

    The NSViewController with which to render the OAuth flow.

    openURL

    A wrapper around app-extension unsafe openURL call.

    Return Value

    An initialized instance.