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
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
Declaration
Swift
public enum PlayerServiceError : Error
-
Enum of possible errors thrown by the
ServiceFactory
- couldNotCreateReachabilityService: thrown if a
ReachabilityService
instance could not be created
Declaration
Swift
public enum ServiceFactoryError : Error
- couldNotCreateReachabilityService: thrown if a
-
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
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
Declaration
Swift
public enum FireTVSelectionWireframeError : Error
-
Enum describing the log event types
See moreDeclaration
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
Declaration
Swift
public enum MetadataType : String, Codable
-
Enum describing all possible status of a player
See moreDeclaration
Swift
public enum PlayerStatus : UInt32
-
Declaration
Swift
public enum SubtitleKind : String, Codable