OfflineConfig
data class OfflineConfig(var maxSimultaneousDownloads: Int = 3, var maxSimultaneousSegmentDownloads: Int = 3, var deviceStateRequirements: Set<DeviceStateRequirement> = BitmovinDownloadService.DEFAULT_DEVICE_STATE_REQUIREMENTS, val tweaksConfig: OfflineTweaksConfig = OfflineTweaksConfig()) : Parcelable
Configures offline functionality.
Constructors
| OfflineConfig | constructor(maxSimultaneousDownloads: Int = 3, maxSimultaneousSegmentDownloads: Int = 3, deviceStateRequirements: Set<DeviceStateRequirement> = BitmovinDownloadService.DEFAULT_DEVICE_STATE_REQUIREMENTS, tweaksConfig: OfflineTweaksConfig = OfflineTweaksConfig()) |
Properties
| Name | Summary |
|---|---|
| deviceStateRequirements | var deviceStateRequirements: Set<DeviceStateRequirement> The requirements that must be met in order for downloads to be active. Default: Any Network connection. |
| maxSimultaneousDownloads | var maxSimultaneousDownloads: Int The number of maximum allowed simultaneous download tasks. Default value is 3. |
| maxSimultaneousSegmentDownloads | var maxSimultaneousSegmentDownloads: Int The number of maximum allowed simultaneous segment downloads per download task. Default value is 3. |
| requirements | val |
| tweaksConfig | val tweaksConfig: OfflineTweaksConfig Configures experimental offline features. Default: A default OfflineTweaksConfig. |