setDataTarget

Sets the target events for which to add lifecycle data to.

LifecycleDataTarget.LifecycleEventsOnly is the default, and will only send lifecycle data on lifecycle events.