FLBookmarksFactory
public enum FLBookmarksFactory
The factory class for module FLBookmarks.
This class has methods to create types exposed by this module.
-
bookmarkSessionConfiguration(endPoint:bookmarkSyncInterval: bookmarkThresholdPercentage: thresholdPlaybackPositionMs: ) API to construct
BookmarkSessionConfigurationconfirmed value type instanceDeclaration
Swift
public static func bookmarkSessionConfiguration(endPoint: String, bookmarkSyncInterval: TimeInterval = 60000, bookmarkThresholdPercentage: Double? = 0.95, thresholdPlaybackPositionMs: TimeInterval? = nil) -> BookmarkSessionConfigurationParameters
endPointThe server url for bookmark service
bookmarkSyncIntervalSync interval time for Bookmark Service in millisecs. Default value is 60000ms.
bookmarkThresholdPercentageThreshold percentage value for bookmark service.Default value is 0.95.
thresholdPlaybackPositionMsPlayback position in millisecs, beyond which content is considered fully watched.
-
API to construct
BookmarkServiceconfirmed reference type instance.Declaration
Swift
public static func bookmarkService(endPoint: String, httpClient: HTTPClient = FLFoundationFactory.httpClient(), authorizer: PlatformAuthorizer) -> BookmarkServiceParameters
endPointThe server url for bookmark service
httpClientThe
HTTPClientfor performing URL load requestsauthorizerPlatformAuthorizer for creating authorized network request.Check
PlatformAuthorizerfor further details -
bookmarksManager(configuration:itemId: seasonId: episodeId: videoId: mode: seasonNumber: episodeNumber: contentType: bookmarkService: authorizer: ) API to construct
BookmarksManagerconfirmed reference type instance.Declaration
Swift
@available(*, deprecated, message: "This API has been deprecated. Please use `bookmarksManager(configuration: bookmarkAttributes: bookmarkService:﹚` or `bookmarksManager(configuration: bookmarkAttributes: authorizer: httpClient:﹚` instead.") public static func bookmarksManager(configuration: BookmarkSessionConfiguration, itemId: String, seasonId: String? = nil, episodeId: String? = nil, videoId: String? = nil, mode: Mode? = nil, seasonNumber: Int? = nil, episodeNumber: Int? = nil, contentType: String? = nil, bookmarkService: BookmarkService, authorizer _: PlatformAuthorizer? = nil) -> BookmarksManagerParameters
configurationThe configuration for the bookmarks manager. Check
BookmarkSessionConfigurationfor further details.itemIdUnique identifier of the content
seasonIdseason identifier of the content
episodeIdepisode identifier of the content
videoIdvideo identifier of the content
modeIndicates the type of content (series, episode or playlist).
seasonNumbercurrent season number of the content
episodeNumbercurrent episode number of the content
bookmarkServiceBookmarkService as optional param
authorizerPlatformAuthorizer for creating authorized network request.Check
PlatformAuthorizerfor further detailscontentTypeThe content type of the content
-
API to construct
BookmarksManagerconfirmed reference type instance.Declaration
Swift
public static func bookmarksManager(configuration: BookmarkSessionConfiguration, bookmarkAttributes: BookmarkAttributes, bookmarkService: BookmarkService, nextItem: BookmarkAttributes? = nil) -> BookmarksManagerParameters
configurationThe configuration for the bookmarks manager. Check
BookmarkSessionConfigurationfor further details.bookmarkAttributesThe bookmark request attributes
bookmarkServiceBookmarkService as optional param
nextItem(Optional) Bookmark attributes for the next item. If provided, when the current items end threshold is reached, this item be added to bookmark record with offset 0.
-
API to construct
BookmarksManagerconfirmed reference type instance.Declaration
Swift
public static func bookmarksManager(configuration: BookmarkSessionConfiguration, bookmarkAttributes: BookmarkAttributes, authorizer: PlatformAuthorizer, httpClient: HTTPClient = FLFoundationFactory.httpClient(), nextItem: BookmarkAttributes? = nil) -> BookmarksManagerParameters
configurationThe configuration for the bookmarks manager. Check
BookmarkSessionConfigurationfor further details.bookmarkAttributesThe bookmark request attributes
authorizerPlatformAuthorizer for creating authorized network request.Check
PlatformAuthorizerfor further detailshttpClientThe
HTTPClientfor performing URL load requestsnextItem(Optional) Bookmark attributes for the next item. If provided, when the current items end threshold is reached, this item be added to bookmark record with offset 0.
-
API to construct
QueueBookmarksManagerfor queue-based playback with PlatformAuthorizer.Declaration
Swift
public static func bookmarksManager( configuration: BookmarkSessionConfiguration, bookmarkAttributes: BookmarkAttributes, authorizer: PlatformAuthorizer, configurationCallback: MediaPlaylistItemTransitionCallback, httpClient: HTTPClient = FLFoundationFactory.httpClient() ) -> BookmarksManagerParameters
configurationThe configuration for the bookmarks manager
bookmarkAttributesThe bookmark request attributes
authorizerPlatformAuthorizer for creating authorized network requests
configurationProviderProvider to supply bookmark configuration for each media item
httpClientThe HTTPClient for performing URL load requests
-
API to construct
QueueBookmarksManagerfor queue-based playback with custom BookmarkService.Declaration
Swift
public static func bookmarksManager( configuration: BookmarkSessionConfiguration, bookmarkAttributes: BookmarkAttributes, bookmarkService: BookmarkService, configurationCallback: MediaPlaylistItemTransitionCallback ) -> BookmarksManagerParameters
configurationThe configuration for the bookmarks manager
bookmarkAttributesThe bookmark request attributes
bookmarkServiceCustom BookmarkService instance
configurationProviderProvider to supply bookmark configuration for each media item