Enumerations

The following enumerations are available globally.

  • String enum used for storing data in UserDefaults

    • fireTVKitLogging: boolean value which specifies if logging is enabled for the FireTVKit
    • fireTVKitLogEvent: string value describing which specific event type should be logged
    See more

    Declaration

    Swift

    public enum FireTVKitUserDefaultsKeys : String
  • Enum of possible errors thrown by a PlayerService instance

    • noPlayer: thrown if the player property is nil
    • couldNotCastDurationToInt: thrown if a duration value could not be casted to Int
    • couldNotCastPositionToInt64: thrown if a duration value could not be casted to Int64
    • couldNotCastTaskResultToMediaPlayerStatus: thrown if a task result could not be casted to MediaPlayerStatus
    • couldNotCastTaskResultToMediaPlayerInfo: thrown if a task result could not be casted to MediaPlayerInfo
    • invalidTaskResult: thrown if a task result is invalid
    • couldNotCreateStringFromMetadata: thrown if a string could not be created using metadata
    See more

    Declaration

    Swift

    public enum PlayerServiceError : Error
  • Enum of possible errors thrown by the ServiceFactory

    • couldNotCreateReachabilityService: thrown if a ReachabilityService instance could not be created
    See more

    Declaration

    Swift

    public enum ServiceFactoryError : Error
  • Enum for the possible errors thrown by the FireTVPlayerWireframe

    • couldNotFindResourceBundle: thrown if the resource bundle wasn’t found
    • couldNotInstantiateInitialViewController: thrown if the initial view controller couldn’t be instantiated
    See more

    Declaration

    Swift

    public enum FireTVPlayerWireframeError : Error
  • Enum representing errors thrown by the FireTVSelectionWireframe

    • couldNotFindResourceBundle: thrown if the resource bundle wasn’t found
    • couldNotInstantiateInitialViewController: thrown if the initial view controller couldn’t be instantiated
    • noViewControllersInNavigationController: thrown if outer navigation controller has no view controllers
    See more

    Declaration

    Swift

    public enum FireTVSelectionWireframeError : Error
  • Enum describing the log event types

    See more

    Declaration

    Swift

    public enum LogEvent : String
  • Enum for the possible metadata types

    • audio: the media is audio
    • drm: the media is drm
    • image: the media is an image
    • video: the media is a video
    See more

    Declaration

    Swift

    public enum MetadataType : String, Codable
  • Enum describing all possible status of a player

    See more

    Declaration

    Swift

    public enum PlayerStatus : UInt32
  • Enum for all possible subtitle types

    • subtitles: type for subtitles
    See more

    Declaration

    Swift

    public enum SubtitleKind : String, Codable