Contents

mediaEvents

A sensor that provides information about interactions with media, such as images and videos, in messaging apps.

Declaration

static let mediaEvents: SRSensor

Discussion

The sample type for this sensor is SRMediaEvent.

You need to provide a reason to observe the user’s interactions with media by adding the SRSensorUsageMediaEvents dictionary to the NSSensorKitUsageDetail key in the information property list.

See Also

Reading user activity sensors