Interface ZendriveFeedback

Provide feedback on a trip or events

interface ZendriveFeedback {
    addDriveCategory(driveId, category): Promise<boolean>;
    addEventOccurrence(driveId, eventTimestamp, eventType, occurrence): Promise<boolean>;
}

Methods

  • Help Zendrive improve by providing feedback for a drive detected by the SDK If the SDK is not setup, this method is a no-op.

    Parameters

    • driveId: string

      as returned at the end of drive in [[DriveInfo#driveId]]

    • category: ZendriveFeedbackDriveCategory

      the category that best indicates the type of Drive, see [[ZendriveFeedbackDriveCategory]]

    Returns Promise<boolean>

  • Help Zendrive improve by providing information about whether an event detected by the SDK occurred or not If the SDK is not setup, this method is a no-op.

    Parameters

    • driveId: string

      as returned at the end of drive in [[DriveInfo#driveId]] which this event is part of

    • eventTimestamp: number

      as returned by [[ZendriveEvent#startTimestampMillis]]

    • eventType: ZendriveEventType

      as returned by [[ZendriveEvent#eventType]]

    • occurrence: boolean

      whether the event occurred or not

    Returns Promise<boolean>