Apex
Types

FileViewed

This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods returns for the file-viewed platform event type. It has the following field(s)-

Class params/properties:

  1. Resource Resource
  2. Link Link
  3. String RecordId - Salesforce Record Id
  4. Double TimeSpent - Time Spent (In Seconds)
  5. String Email - Viewed By
  6. Boolean downloaded