MediaProviders

Enumeration

Enum for enabling specific media providers in rich push notifications.

Raw values are powers of two so callers can combine them into a bitmask with | (e.g. MediaProviders.sfmc.rawValue | MediaProviders.someOther.rawValue ). The special .none case (raw value 0 ) is the “opt-out” sentinel and is not a bit itself.

Declaration 

1@objc(SFMCMediaProviders)
2public enum MediaProviders : Int, CaseIterable
3
4case none = 0
5
6case sfmc = 1

Cases 

none 

Explicitly opt out of automatic media handling by the SDK. Use when the host app performs its own media download in sfmcDidReceiveRequest and does not want the SDK to run in parallel.

1case none = 0

sfmc 

SFMC media provider — downloads media from SFMC push notifications.

1case sfmc = 1