Structures

The following structures are available globally.

  • Represents the response from an initialization process containing the selected analytics provider and result.

    See more

    Declaration

    Swift

    public struct InitializationResponse
  • Undocumented

    See more

    Declaration

    Swift

    public struct AnalyticsKeyTransformer
  • Provides feature flags to enable or disable New Relic features [NRMAFeatureFlags].

    Note on backgroundReporting: This feature registers BGTask launch handlers internally in the New Relic SDK. Enabling it on iOS / tvOS versions below 18 results in a runtime crash (“All launch handlers must be registered before application finishes launching”). Therefore, Background Reporting is enabled only on iOS 18+ and tvOS 18+.

    See more

    Declaration

    Swift

    public struct NewRelicFeatureFlags
  • Provides configurations to customize NewRelic events reporting.

    See more

    Declaration

    Swift

    public struct NewRelicEventReportingConfigs
  • Configuration for managing throttled analytics reporting.

    See more

    Declaration

    Swift

    public struct AnalyticsThrottlerConfiguration
  • Undocumented

    See more

    Declaration

    Swift

    public struct MiscellaneousContent : Content
  • Undocumented

    See more

    Declaration

    Swift

    public struct TVShow : Content
  • Undocumented

    See more

    Declaration

    Swift

    public struct Sport : Content
  • Playback source

    See more

    Declaration

    Swift

    public struct PlaybackSource : Codable
  • Common reporting data

    See more

    Declaration

    Swift

    public struct CommonReportingData
  • The device interface

    See more

    Declaration

    Swift

    public struct Device : Codable
  • The application metadata

    See more

    Declaration

    Swift

    public struct Application : Codable
  • The ABTesting metadata

    See more

    Declaration

    Swift

    public struct ABTesting : Codable
  • The application metrics interface

    See more

    Declaration

    Swift

    public struct ApplicationMetrics : Codable
  • The application share platform

    See more

    Declaration

    Swift

    public struct ApplicationSharePlatform : Codable
  • The Application container interface

    See more

    Declaration

    Swift

    public struct ApplicationContainer : Codable
  • Playback request

    See more

    Declaration

    Swift

    public struct PlaybackRequest
  • Download request

    See more

    Declaration

    Swift

    public struct DownloadRequest
  • User error

    See more

    Declaration

    Swift

    public struct UserError : Codable
  • Custom event

    See more

    Declaration

    Swift

    public struct CustomEvent
  • Playback source type.

    Known SDK values are exposed as static constants. Customer-specific values can be passed using init(rawValue:).

    // Known value
    let source = PlaybackSource(type: .carousel)
    
    // Custom/partner-specific value
    let source = PlaybackSource(type: PlaybackSourceType(rawValue: "partner_xyz_special_row"))
    
    See more

    Declaration

    Swift

    public struct PlaybackSourceType : RawRepresentable, Hashable, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct UserJourney : Codable
  • The user metadata

    See more

    Declaration

    Swift

    public struct User : Codable
  • The subscription interface

    See more

    Declaration

    Swift

    public struct Subscription : Codable