Functions

The following functions are available globally.

  • Undocumented

    Declaration

    Objective-C

    NSString *_Nonnull ARTMessageActionToStr(ARTMessageAction action)

    Swift

    func ARTMessageActionToStr(_ action: ARTMessageAction) -> String
  • A static method that takes the value of one of the keys in the Message.annotations.summary object for the distinct.v1 annotation type, and outputs a strongly-typed summary entry.

    Declaration

    Objective-C

    NSDictionary<NSString *, ARTSummaryClientIdList *>
        *_Nullable ARTSummaryDistinctV1(NSDictionary *_Nullable dictionary)

    Swift

    func ARTSummaryDistinctV1(_ dictionary: [AnyHashable : Any]?) -> [String : ARTSummaryClientIdList]?

    Parameters

    dictionary

    The value of one of the keys of the Message.annotations.summary.

    Return Value

    Map of annotation name to aggregated annotations.

  • A static method that takes the value of one of the keys in the Message.annotations.summary object for the unique.v1 annotation type, and outputs a strongly-typed summary entry.

    Declaration

    Objective-C

    NSDictionary<NSString *, ARTSummaryClientIdList *>
        *_Nullable ARTSummaryUniqueV1(NSDictionary *_Nullable dictionary)

    Swift

    func ARTSummaryUniqueV1(_ dictionary: [AnyHashable : Any]?) -> [String : ARTSummaryClientIdList]?

    Parameters

    dictionary

    The value of one of the keys of the Message.annotations.summary.

    Return Value

    Map of annotation name to aggregated annotations.

  • A static method that takes the value of one of the keys in the Message.annotations.summary object for the multiple.v1 annotation type, and outputs a strongly-typed summary entry.

    Declaration

    Objective-C

    NSDictionary<NSString *, ARTSummaryClientIdCounts *>
        *_Nullable ARTSummaryMultipleV1(NSDictionary *_Nullable dictionary)

    Swift

    func ARTSummaryMultipleV1(_ dictionary: [AnyHashable : Any]?) -> [String : ARTSummaryClientIdCounts]?

    Parameters

    dictionary

    The value of one of the keys of the Message.annotations.summary.

    Return Value

    Map of annotation name to aggregated annotations.

  • A static factory method that takes the value of one of the keys in the Message.annotations.summary object for the flag.v1 annotation type, and outputs a strongly-typed summary entry.

    Declaration

    Objective-C

    ARTSummaryClientIdList *_Nullable ARTSummaryFlagV1(
        NSDictionary *_Nullable dictionary)

    Swift

    func ARTSummaryFlagV1(_ dictionary: [AnyHashable : Any]?) -> ARTSummaryClientIdList?

    Parameters

    dictionary

    The value of one of the keys of the Message.annotations.summary.

    Return Value

    Aggregated annotations.

  • A static factory method that takes the value of one of the keys in the Message.annotations.summary object for the total.v1 annotation type, and outputs a strongly-typed summary entry.

    Declaration

    Objective-C

    ARTSummaryTotal *_Nullable ARTSummaryTotalV1(NSDictionary *_Nullable dictionary)

    Swift

    func ARTSummaryTotalV1(_ dictionary: [AnyHashable : Any]?) -> ARTSummaryTotal?

    Parameters

    dictionary

    The value of one of the keys of the Message.annotations.summary.

    Return Value

    Aggregated total summary.