@@ -41,16 +41,16 @@ import Segment
4141 An implementation of the Example Analytics device mode destination as a plugin.
4242 */
4343
44- class ExampleDestination : DestinationPlugin {
45- let timeline = Timeline ( )
46- let type = PluginType . destination
44+ public class ExampleDestination : DestinationPlugin {
45+ public let timeline = Timeline ( )
46+ public let type = PluginType . destination
4747 // TODO: Fill this out with your settings key that matches your destination in the Segment App
48- let key = " Example "
49- var analytics : Analytics ? = nil
48+ public let key = " Example "
49+ public var analytics : Analytics ? = nil
5050
5151 private var exampleSettings : ExampleSettings ?
5252
53- func update( settings: Settings , type: UpdateType ) {
53+ public func update( settings: Settings , type: UpdateType ) {
5454 // Skip if you have a singleton and don't want to keep updating via settings.
5555 guard type == . initial else { return }
5656
@@ -62,7 +62,7 @@ class ExampleDestination: DestinationPlugin {
6262 // TODO: initialize partner SDK here
6363 }
6464
65- func identify( event: IdentifyEvent ) -> IdentifyEvent ? {
65+ public func identify( event: IdentifyEvent ) -> IdentifyEvent ? {
6666
6767 if let _ = event. traits? . dictionaryValue {
6868 // TODO: Do something with traits if they exist
@@ -73,7 +73,7 @@ class ExampleDestination: DestinationPlugin {
7373 return event
7474 }
7575
76- func track( event: TrackEvent ) -> TrackEvent ? {
76+ public func track( event: TrackEvent ) -> TrackEvent ? {
7777
7878 var returnEvent = event
7979
@@ -88,7 +88,7 @@ class ExampleDestination: DestinationPlugin {
8888 return returnEvent
8989 }
9090
91- func screen( event: ScreenEvent ) -> ScreenEvent ? {
91+ public func screen( event: ScreenEvent ) -> ScreenEvent ? {
9292
9393 if let _ = event. properties? . dictionaryValue {
9494 // TODO: Do something with properties if they exist
@@ -99,7 +99,7 @@ class ExampleDestination: DestinationPlugin {
9999 return event
100100 }
101101
102- func group( event: GroupEvent ) -> GroupEvent ? {
102+ public func group( event: GroupEvent ) -> GroupEvent ? {
103103
104104 if let _ = event. traits? . dictionaryValue {
105105 // TODO: Do something with traits if they exist
@@ -110,7 +110,7 @@ class ExampleDestination: DestinationPlugin {
110110 return event
111111 }
112112
113- func alias( event: AliasEvent ) -> AliasEvent ? {
113+ public func alias( event: AliasEvent ) -> AliasEvent ? {
114114
115115 // TODO: Do something with previousId & userId in partner SDK
116116
0 commit comments