Type Aliases

The following type aliases are available globally.

  • Defines block to be called when current user is changed.

    Declaration

    Swift

    public typealias OnCurrentUserChangedListener = (CurrentUser) -> Void
  • Defines block to be called when SDK is initialized.

    Declaration

    Swift

    public typealias OnInitializedListener = () -> Void
  • Success callback.

    Declaration

    Swift

    public typealias SuccessCallback = () -> Void
  • Cancel callback.

    Declaration

    Swift

    public typealias CancelCallback = SuccessCallback
  • Failure callback.

    Declaration

    Swift

    public typealias FailureCallback = (Error) -> Void
  • Result callback.

    Declaration

    Swift

    public typealias ResultCallback<Result> = (Result) -> Void
  • Defines the block block to be called when referral data is received.

    Declaration

    Swift

    public typealias OnReferralDataReceivedListener = (ReferralData) -> Void
  • Defines block to be called when application was started with clicking on a GetSocial notification.

    Declaration

    Swift

    public typealias OnNotificationClickedListener = (GetSocialNotification, NotificationContext) -> Void

    Parameters

    notification

    Received Push Notification

    notificationContext

    More details how Push notification was clicked. If you want GetSocial to handle notification’s action, call GetSocial.handleAction method.

  • Defines block to be called when a GetSocial notification is received.

    Declaration

    Swift

    public typealias OnNotificationReceivedListener = (GetSocialNotification) -> Void
  • Defines block to be called when GetSocial receives the Push Notification device token.

    Declaration

    Swift

    public typealias OnTokenReceivedListener = (String) -> Void