BehaviorObserver
@objc(SFMCSdkBehaviorObserver)
public protocol BehaviorObserver
Protocol to adhere to when creating an observer to listen to behavior events sent by the BehaviorManager
- Tag: BehaviorObserver
-
Behavior types to observe.
Declaration
Swift
var behaviorTypesToObserve: Set<BehaviorType.RawValue> { get } -
Action that needs to be taken on behavior event sent by the BehaviorManager
- Tag: OnBehavior
Declaration
Swift
func onBehavior(behavior: Behavior)Parameters
behaviorinstance of behavior adopting Behavior protocol
BehaviorObserver Protocol Reference