ReasonCodes

public protocol ReasonCodes : Hashable

The reasons a ping may be sent. Reason codes can be of any type, but need to adhere to a protocol.

For user-defined custom pings associated reason codes will be defined as enums.

  • The index of the reason code, used to index the string array passed at Ping instantiation.

    Declaration

    Swift

    func index() -> Int