Protocols

The following protocols are available globally.

  • Supporting protocol for In-App Messaging

    Implementation of this protocol is not required for In-App Messaging to work, although it provides addition control for an application developer.

    In-App messages are presented by the MobilePush SDK in an application’s context, inserted into the view hierarchy atop the application’s topmost view controller.

    This protocol allows for awareness into the SDK’s lifecycle for In-App Messages.

    See more

    Declaration

    Objective-C

    @protocol MarketingCloudSDKEventDelegate <NSObject>

    Swift

    protocol MarketingCloudSDKEventDelegate : NSObjectProtocol
  • Supporting protocol for the MobilePush SDK’s support for Locations.

    Implementation of this protocol is not required for the Location feature to work, although it provides addition control for an application developer.

    This protocol allows for awareness into the SDK’s lifecycle for Location tracking and messaging.

    See more

    Declaration

    Objective-C

    @protocol MarketingCloudSDKLocationDelegate <NSObject>

    Swift

    protocol MarketingCloudSDKLocationDelegate : NSObjectProtocol
  • Supporting Protocol for handling URL’s passed to the SDK.

    See more

    Declaration

    Objective-C

    @protocol MarketingCloudSDKURLHandlingDelegate <NSObject>

    Swift

    protocol MarketingCloudSDKURLHandlingDelegate : NSObjectProtocol
  • Required protocol for creating event objects to be passed into the SDK

    See more

    Declaration

    Objective-C

    @protocol SFMCEvent <NSObject>

    Swift

    protocol SFMCEventProtocol : NSObjectProtocol