BitmovinDownloadService

Android Service that handles downloading content for offline playback. Can be extended to implement custom notification behaviour.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val ACCESSIBILITY_SERVICE: String = "accessibility"
Link copied to clipboard
val ACCOUNT_SERVICE: String = "account"
Link copied to clipboard
val ACTION_ADD_DOWNLOAD: String = "androidx.media3.exoplayer.downloadService.action.ADD_DOWNLOAD"
Link copied to clipboard
val ACTION_ADD_DOWNLOADS: String = "com.google.android.exoplayer.downloadService.action.ADD_DOWNLOADS"

Action that will be send to add a list of Downloads.

Link copied to clipboard
val ACTION_CALLBACK_ERROR: String = "com.bitmovin.player.callback.error"

Action that will be send if an error occurs.

Link copied to clipboard
val ACTION_INIT: String = "androidx.media3.exoplayer.downloadService.action.INIT"
Link copied to clipboard
val ACTION_PAUSE_DOWNLOADS: String = "androidx.media3.exoplayer.downloadService.action.PAUSE_DOWNLOADS"
Link copied to clipboard
val ACTION_RELOAD_CONFIGURATION: String = "com.bitmovin.player.downloadService.action.RELOAD_CONFIGURATION"

Action that will be send to force a reload of the OfflineConfig.

Link copied to clipboard
val ACTION_REMOVE_ALL_DOWNLOADS: String = "androidx.media3.exoplayer.downloadService.action.REMOVE_ALL_DOWNLOADS"
Link copied to clipboard
val ACTION_REMOVE_DOWNLOAD: String = "androidx.media3.exoplayer.downloadService.action.REMOVE_DOWNLOAD"
Link copied to clipboard
val ACTION_REMOVE_DOWNLOADS: String = "com.google.android.exoplayer.downloadService.action.REMOVE_DOWNLOADS"

Action that will be send to remove a list of Downloads(IDs).

Link copied to clipboard
val ACTION_RESTART: String = "androidx.media3.exoplayer.downloadService.action.RESTART"
Link copied to clipboard
val ACTION_RESUME_DOWNLOADS: String = "androidx.media3.exoplayer.downloadService.action.RESUME_DOWNLOADS"
Link copied to clipboard
val ACTION_SET_REQUIREMENTS: String = "androidx.media3.exoplayer.downloadService.action.SET_REQUIREMENTS"
Link copied to clipboard
val ACTION_SET_STOP_REASON: String = "androidx.media3.exoplayer.downloadService.action.SET_STOP_REASON"
Link copied to clipboard
val ACTIVITY_SERVICE: String = "activity"
Link copied to clipboard
val ADVANCED_PROTECTION_SERVICE: String = "advanced_protection"
Link copied to clipboard
val ALARM_SERVICE: String = "alarm"
Link copied to clipboard
val APP_FUNCTION_SERVICE: String = "app_function"
Link copied to clipboard
val APP_OPS_SERVICE: String = "appops"
Link copied to clipboard
val APP_SEARCH_SERVICE: String = "app_search"
Link copied to clipboard
val APPWIDGET_SERVICE: String = "appwidget"
Link copied to clipboard
val AUDIO_SERVICE: String = "audio"
Link copied to clipboard
val AUTOFILL_SERVICE: String = "autofill"
Link copied to clipboard
val BATTERY_SERVICE: String = "batterymanager"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val BIND_EXTERNAL_SERVICE: Int = -2147483648
Link copied to clipboard
val BIND_EXTERNAL_SERVICE_LONG: Long = 4611686018427387904
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val BIOMETRIC_SERVICE: String = "biometric"
Link copied to clipboard
val BLOB_STORE_SERVICE: String = "blob_store"
Link copied to clipboard
val BLUETOOTH_SERVICE: String = "bluetooth"
Link copied to clipboard
val BUGREPORT_SERVICE: String = "bugreport"
Link copied to clipboard
val CAMERA_SERVICE: String = "camera"
Link copied to clipboard
val CAPTIONING_SERVICE: String = "captioning"
Link copied to clipboard
val CARRIER_CONFIG_SERVICE: String = "carrier_config"
Link copied to clipboard
val CHOOSER_SERVICE: String = "chooser"
Link copied to clipboard
val CLIPBOARD_SERVICE: String = "clipboard"
Link copied to clipboard
val COMPANION_DEVICE_SERVICE: String = "companiondevice"
Link copied to clipboard
val CONNECTIVITY_DIAGNOSTICS_SERVICE: String = "connectivity_diagnostics"
Link copied to clipboard
val CONNECTIVITY_SERVICE: String = "connectivity"
Link copied to clipboard
val CONSUMER_IR_SERVICE: String = "consumer_ir"
Link copied to clipboard
val CONTACT_KEYS_SERVICE: String = "contact_keys"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val CREDENTIAL_SERVICE: String = "credential"
Link copied to clipboard
val CROSS_PROFILE_APPS_SERVICE: String = "crossprofileapps"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val DEVICE_LOCK_SERVICE: String = "device_lock"
Link copied to clipboard
val DEVICE_POLICY_SERVICE: String = "device_policy"
Link copied to clipboard
val DISPLAY_HASH_SERVICE: String = "display_hash"
Link copied to clipboard
val DISPLAY_SERVICE: String = "display"
Link copied to clipboard
val DOMAIN_VERIFICATION_SERVICE: String = "domain_verification"
Link copied to clipboard
val DOWNLOAD_SERVICE: String = "download"
Link copied to clipboard
val DROPBOX_SERVICE: String = "dropbox"
Link copied to clipboard
val EUICC_SERVICE: String = "euicc"
Link copied to clipboard
val FILE_INTEGRITY_SERVICE: String = "file_integrity"
Link copied to clipboard
val FILE_SERVICE: String = "file"
Link copied to clipboard
val GAME_SERVICE: String = "game"
Link copied to clipboard
val GRAMMATICAL_INFLECTION_SERVICE: String = "grammatical_inflection"
Link copied to clipboard
val HARDWARE_PROPERTIES_SERVICE: String = "hardware_properties"
Link copied to clipboard
val HEALTHCONNECT_SERVICE: String = "healthconnect"
Link copied to clipboard
val INPUT_METHOD_SERVICE: String = "input_method"
Link copied to clipboard
val INPUT_SERVICE: String = "input"
Link copied to clipboard
val IPSEC_SERVICE: String = "ipsec"
Link copied to clipboard
val JOB_SCHEDULER_SERVICE: String = "jobscheduler"
Link copied to clipboard
val KEY_CALLBACK_ERROR_CODE: String = "error_code"

Extra name for error callbacks, containing the error code.

Link copied to clipboard
val KEY_CALLBACK_ERROR_MESSAGE: String = "error_message"

Extra name for error callbacks, containing the error message.

Link copied to clipboard
val KEY_CALLBACK_SOURCE: String = "callback_source"

Extra name for callbacks, containing the contentID of the affected OfflineContent.

Link copied to clipboard
val KEY_CONTENT_ID: String = "content_id"
Link copied to clipboard
val KEY_CONTENT_IDS: String = "content_ids"

Key for the Strings content id in .ACTION_REMOVE_DOWNLOADS intents.

Link copied to clipboard
val KEY_DOWNLOAD_REQUEST: String = "download_request"
Link copied to clipboard
val KEY_DOWNLOAD_REQUESTS: String = "download_requests"

Key for the DownloadRequests in .ACTION_ADD_DOWNLOADS intents.

Link copied to clipboard
val KEY_FOREGROUND: String = "foreground"
Link copied to clipboard
val KEY_OFFLINE_CONTENT: String = "offline_content"

Key for the OfflineContent in an ACTION_ADD intent.

Link copied to clipboard
val KEY_REQUIREMENTS: String = "requirements"
Link copied to clipboard
val KEY_STOP_REASON: String = "stop_reason"
Link copied to clipboard
val KEYGUARD_SERVICE: String = "keyguard"
Link copied to clipboard
val KEYSTORE_SERVICE: String = "keystore"
Link copied to clipboard
val LAUNCHER_APPS_SERVICE: String = "launcherapps"
Link copied to clipboard
val LAYOUT_INFLATER_SERVICE: String = "layout_inflater"
Link copied to clipboard
val LOCALE_SERVICE: String = "locale"
Link copied to clipboard
val LOCATION_SERVICE: String = "location"
Link copied to clipboard
val MEDIA_COMMUNICATION_SERVICE: String = "media_communication"
Link copied to clipboard
val MEDIA_METRICS_SERVICE: String = "media_metrics"
Link copied to clipboard
val MEDIA_PROJECTION_SERVICE: String = "media_projection"
Link copied to clipboard
val MEDIA_QUALITY_SERVICE: String = "media_quality"
Link copied to clipboard
val MEDIA_ROUTER_SERVICE: String = "media_router"
Link copied to clipboard
val MEDIA_SESSION_SERVICE: String = "media_session"
Link copied to clipboard
val MIDI_SERVICE: String = "midi"
Link copied to clipboard
val MODE_APPEND: Int = 32768
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val MODE_PRIVATE: Int = 0
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val NETWORK_STATS_SERVICE: String = "netstats"
Link copied to clipboard
val NFC_SERVICE: String = "nfc"
Link copied to clipboard
val NOTIFICATION_SERVICE: String = "notification"
Link copied to clipboard
val NPU_SERVICE: String = "npu"
Link copied to clipboard
val NSD_SERVICE: String = "servicediscovery"
Link copied to clipboard
val OVERLAY_SERVICE: String = "overlay"
Link copied to clipboard
val PCC_SANDBOX_SERVICE: String = "pcc_sandbox"
Link copied to clipboard
val PEOPLE_SERVICE: String = "people"
Link copied to clipboard
val PERFORMANCE_HINT_SERVICE: String = "performance_hint"
Link copied to clipboard
val PERSISTENT_DATA_BLOCK_SERVICE: String = "persistent_data_block"
Link copied to clipboard
val POWER_SERVICE: String = "power"
Link copied to clipboard
val PRINT_SERVICE: String = "print"
Link copied to clipboard
val PROFILING_SERVICE: String = "profiling"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val RESTRICTIONS_SERVICE: String = "restrictions"
Link copied to clipboard
val ROLE_SERVICE: String = "role"
Link copied to clipboard
val SATELLITE_SERVICE: String = "satellite"
Link copied to clipboard
val SEARCH_SERVICE: String = "search"
Link copied to clipboard
val SECURITY_STATE_SERVICE: String = "security_state"
Link copied to clipboard
val SENSOR_SERVICE: String = "sensor"
Link copied to clipboard
val SERIAL_SERVICE: String = "serial"
Link copied to clipboard
val SHORTCUT_SERVICE: String = "shortcut"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val START_STICKY: Int = 1
Link copied to clipboard
Link copied to clipboard
val STATUS_BAR_SERVICE: String = "statusbar"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val STORAGE_SERVICE: String = "storage"
Link copied to clipboard
val STORAGE_STATS_SERVICE: String = "storagestats"
Link copied to clipboard
val SYSTEM_HEALTH_SERVICE: String = "systemhealth"
Link copied to clipboard
val TELECOM_SERVICE: String = "telecom"
Link copied to clipboard
val TELEPHONY_IMS_SERVICE: String = "telephony_ims"
Link copied to clipboard
val TELEPHONY_PHONE_NUMBER_SERVICE: String = "telephony_phone_number"
Link copied to clipboard
val TELEPHONY_SERVICE: String = "phone"
Link copied to clipboard
val TELEPHONY_SUBSCRIPTION_SERVICE: String = "telephony_subscription_service"
Link copied to clipboard
val TETHERING_SERVICE: String = "tethering"
Link copied to clipboard
val TEXT_CLASSIFICATION_SERVICE: String = "textclassification"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val TV_AD_SERVICE: String = "tv_ad"
Link copied to clipboard
val TV_INPUT_SERVICE: String = "tv_input"
Link copied to clipboard
val TV_INTERACTIVE_APP_SERVICE: String = "tv_interactive_app"
Link copied to clipboard
val UI_MODE_SERVICE: String = "uimode"
Link copied to clipboard
val USAGE_STATS_SERVICE: String = "usagestats"
Link copied to clipboard
val USB_SERVICE: String = "usb"
Link copied to clipboard
val USER_SERVICE: String = "user"
Link copied to clipboard
val VIBRATOR_MANAGER_SERVICE: String = "vibrator_manager"
Link copied to clipboard
val VIBRATOR_SERVICE: String = "vibrator"
Link copied to clipboard
val VIRTUAL_DEVICE_SERVICE: String = "virtualdevice"
Link copied to clipboard
val VPN_MANAGEMENT_SERVICE: String = "vpn_management"
Link copied to clipboard
val WALLPAPER_SERVICE: String = "wallpaper"
Link copied to clipboard
val WEB_APP_SERVICE: String = "web_app"
Link copied to clipboard
val WIFI_AWARE_SERVICE: String = "wifiaware"
Link copied to clipboard
val WIFI_P2P_SERVICE: String = "wifip2p"
Link copied to clipboard
Link copied to clipboard
val WIFI_SERVICE: String = "wifi"
Link copied to clipboard
val WINDOW_SERVICE: String = "window"

Functions

Link copied to clipboard
open fun bindIsolatedService(service: Intent, flags: Int, instanceName: String, executor: Executor, conn: ServiceConnection): Boolean
Link copied to clipboard
open fun bindService(service: Intent, flags: Context.BindServiceFlags, executor: Executor, conn: ServiceConnection): Boolean
Link copied to clipboard
Link copied to clipboard
open fun buildAddDownloadIntent(context: Context, clazz: Class<out DownloadService>, downloadRequest: DownloadRequest, foreground: Boolean): Intent
Link copied to clipboard
fun buildAddDownloadsIntent(context: Context, clazz: Class<out DownloadService>, downloadRequests: ArrayList<DownloadRequest>, stopReason: Int, foreground: Boolean): Intent

Builds an Intent for adding a new download.

Link copied to clipboard
open fun buildPauseDownloadsIntent(context: Context, clazz: Class<out DownloadService>, foreground: Boolean): Intent
Link copied to clipboard
open fun buildRemoveAllDownloadsIntent(context: Context, clazz: Class<out DownloadService>, foreground: Boolean): Intent
Link copied to clipboard
open fun buildRemoveDownloadIntent(context: Context, clazz: Class<out DownloadService>, id: String, foreground: Boolean): Intent
Link copied to clipboard
fun buildRemoveDownloadsIntent(context: Context, clazz: Class<out DownloadService>, ids: ArrayList<String>, foreground: Boolean): Intent

Builds an Intent for removing the download with the id.

Link copied to clipboard
open fun buildResumeDownloadsIntent(context: Context, clazz: Class<out DownloadService>, foreground: Boolean): Intent
Link copied to clipboard
open fun buildSetRequirementsIntent(context: Context, clazz: Class<out DownloadService>, requirements: Requirements, foreground: Boolean): Intent
Link copied to clipboard
open fun buildSetStopReasonIntent(context: Context, clazz: Class<out DownloadService>, id: String, stopReason: Int, foreground: Boolean): Intent
Link copied to clipboard
open fun checkCallingOrSelfPermission(permission: String): Int
Link copied to clipboard
open fun checkCallingOrSelfUriPermission(uri: Uri, modeFlags: Int): Int
Link copied to clipboard
open fun checkCallingOrSelfUriPermissions(uris: List<Uri>, modeFlags: Int): Array<Int>
Link copied to clipboard
open fun checkCallingPermission(permission: String): Int
Link copied to clipboard
open fun checkCallingUriPermission(uri: Uri, modeFlags: Int): Int
Link copied to clipboard
open fun checkCallingUriPermissions(uris: List<Uri>, modeFlags: Int): Array<Int>
Link copied to clipboard
open fun checkContentUriPermissionFull(uri: Uri, pid: Int, uid: Int, modeFlags: Int): Int
Link copied to clipboard
open fun checkPermission(permission: String, pid: Int, uid: Int): Int
Link copied to clipboard
open fun checkSelfPermission(permission: String): Int
Link copied to clipboard
open fun checkUriPermission(uri: Uri, pid: Int, uid: Int, modeFlags: Int): Int
Link copied to clipboard
open fun checkUriPermissions(uris: List<Uri>, pid: Int, uid: Int, modeFlags: Int): Array<Int>
Link copied to clipboard
Link copied to clipboard
open fun clearWallpaper()
Link copied to clipboard
open fun createAttributionContext(attributionTag: String): Context
Link copied to clipboard
open fun createConfigurationContext(overrideConfiguration: Configuration): Context
Link copied to clipboard
open fun createContext(contextParams: ContextParams): Context
Link copied to clipboard
open fun createContextForSplit(splitName: String): Context
Link copied to clipboard
open fun createDeviceContext(deviceId: Int): Context
Link copied to clipboard
Link copied to clipboard
open fun createPackageContext(packageName: String, flags: Int): Context
Link copied to clipboard
open fun createWindowContext(display: Display, type: Int, options: Bundle): Context
Link copied to clipboard
Link copied to clipboard
open fun deleteDatabase(name: String): Boolean
Link copied to clipboard
open fun deleteFile(name: String): Boolean
Link copied to clipboard
Link copied to clipboard
open fun enforceCallingOrSelfPermission(permission: String, message: String)
Link copied to clipboard
open fun enforceCallingOrSelfUriPermission(uri: Uri, modeFlags: Int, message: String)
Link copied to clipboard
open fun enforceCallingPermission(permission: String, message: String)
Link copied to clipboard
open fun enforceCallingUriPermission(uri: Uri, modeFlags: Int, message: String)
Link copied to clipboard
open fun enforcePermission(permission: String, pid: Int, uid: Int, message: String)
Link copied to clipboard
open fun enforceUriPermission(uri: Uri, pid: Int, uid: Int, modeFlags: Int, message: String)
Link copied to clipboard
open fun fileList(): Array<String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getCacheDir(): File
Link copied to clipboard
Link copied to clipboard
open fun getCodeCacheDir(): File
Link copied to clipboard
fun getColor(id: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getDatabasePath(name: String): File
Link copied to clipboard
open fun getDataDir(): File
Link copied to clipboard
open fun getDeviceId(): Int
Link copied to clipboard
open fun getDir(name: String, mode: Int): File
Link copied to clipboard
open fun getDisplay(): Display
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getFilesDir(): File
Link copied to clipboard
open fun getFileStreamPath(name: String): File
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMainLooper(): Looper
Link copied to clipboard
Link copied to clipboard
open fun getObbDir(): File
Link copied to clipboard
open fun getObbDirs(): Array<File>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getString(resId: Int): String
Link copied to clipboard
fun <T> getSystemService(serviceClass: Class<T>): T
open fun getSystemService(name: String): Any
Link copied to clipboard
open fun getSystemServiceName(serviceClass: Class<out Any>): String
Link copied to clipboard
fun getText(resId: Int): CharSequence
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun grantUriPermission(toPackage: String, uri: Uri, modeFlags: Int)
Link copied to clipboard
Link copied to clipboard
open fun isRestricted(): Boolean
Link copied to clipboard
open fun isUiContext(): Boolean
Link copied to clipboard
open fun moveDatabaseFrom(sourceContext: Context, name: String): Boolean
Link copied to clipboard
open fun moveSharedPreferencesFrom(sourceContext: Context, name: String): Boolean
Link copied to clipboard
Link copied to clipboard
fun onBind(intent: Intent): IBinder
Link copied to clipboard
Link copied to clipboard
open fun onCreate()
open fun onCreate()
Link copied to clipboard
open fun onDestroy()
open fun onDestroy()
Link copied to clipboard
open fun onDownloadChanged(downloadManager: DownloadManager, download: Download, finalException: Exception)
open fun onDownloadChanged(downloadManager: DownloadManager, download: Download, finalException: Exception)
Link copied to clipboard
open fun onDownloadRemoved(downloadManager: DownloadManager, download: Download)
open fun onDownloadRemoved(downloadManager: DownloadManager, download: Download)
Link copied to clipboard
open fun onDownloadsPausedChanged(downloadManager: DownloadManager, downloadsPaused: Boolean)
Link copied to clipboard
open fun onIdle()
open fun onIdle(downloadManager: DownloadManager)
Link copied to clipboard
open fun onInitialized(downloadManager: DownloadManager)
open fun onInitialized(downloadManager: DownloadManager)
Link copied to clipboard
open fun onLowMemory()
Link copied to clipboard
open fun onRebind(intent: Intent)
Link copied to clipboard
open fun onRequirementsStateChanged(downloadManager: DownloadManager, requirements: Requirements, notMetRequirements: Int)
Link copied to clipboard
open fun onStart(intent: Intent, startId: Int)
Link copied to clipboard
open fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int

open fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int

Copied over from the base DownloadService class. But a lot of extending of the actual code, so marking changes would confuse more than it helps.

Link copied to clipboard
open fun onTaskRemoved(rootIntent: Intent)
Link copied to clipboard
open fun onTimeout(startId: Int, fgsType: Int)
Link copied to clipboard
open fun onTrimMemory(level: Int)
Link copied to clipboard
open fun onUnbind(intent: Intent): Boolean
Link copied to clipboard
open fun onWaitingForRequirementsChanged(downloadManager: DownloadManager, waitingForRequirements: Boolean)
open fun onWaitingForRequirementsChanged(downloadManager: DownloadManager, waitingForRequirements: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun openFileOutput(name: String, mode: Int): FileOutputStream
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun registerDeviceIdChangeListener(executor: Executor, listener: IntConsumer)
Link copied to clipboard
Link copied to clipboard
open fun removeStickyBroadcast(intent: Intent)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun revokeUriPermission(uri: Uri, modeFlags: Int)
Link copied to clipboard
open fun sendAddDownload(context: Context, clazz: Class<out DownloadService>, downloadRequest: DownloadRequest, foreground: Boolean)
Link copied to clipboard
fun sendAddDownloads(context: Context, clazz: Class<out DownloadService>, downloadRequests: ArrayList<DownloadRequest>, offlineContent: OfflineContent, foreground: Boolean)

Starts the service if not started already and adds a new download.

Link copied to clipboard
open fun sendBroadcast(intent: Intent)
Link copied to clipboard
open fun sendBroadcastAsUser(intent: Intent, user: UserHandle)
Link copied to clipboard
open fun sendBroadcastWithMultiplePermissions(intent: Intent, receiverPermissions: Array<String>)
Link copied to clipboard
open fun sendOrderedBroadcast(intent: Intent, initialCode: Int, receiverPermission: String, receiverAppOp: String, resultReceiver: BroadcastReceiver, scheduler: Handler, initialData: String, initialExtras: Bundle, options: Bundle)
Link copied to clipboard
open fun sendOrderedBroadcastAsUser(intent: Intent, user: UserHandle, receiverPermission: String, resultReceiver: BroadcastReceiver, scheduler: Handler, initialCode: Int, initialData: String, initialExtras: Bundle)
Link copied to clipboard
open fun sendPauseDownloads(context: Context, clazz: Class<out DownloadService>, foreground: Boolean)

fun sendPauseDownloads(context: Context, clazz: Class<out DownloadService>, offlineContent: OfflineContent, foreground: Boolean)

Starts the service if not started already and pauses all downloads.

Link copied to clipboard
open fun sendRemoveAllDownloads(context: Context, clazz: Class<out DownloadService>, foreground: Boolean)

fun sendRemoveAllDownloads(context: Context, clazz: Class<out DownloadService>, offlineContent: OfflineContent, foreground: Boolean)

Starts the service if not started already and removes all downloads.

Link copied to clipboard
open fun sendRemoveDownload(context: Context, clazz: Class<out DownloadService>, id: String, foreground: Boolean)
Link copied to clipboard
fun sendRemoveDownloads(context: Context, clazz: Class<out DownloadService>, ids: ArrayList<String>, offlineContent: OfflineContent, foreground: Boolean)

Starts the service if not started already and removes a download.

Link copied to clipboard
open fun sendResumeDownloads(context: Context, clazz: Class<out DownloadService>, foreground: Boolean)

fun sendResumeDownloads(context: Context, clazz: Class<out DownloadService>, offlineContent: OfflineContent, foreground: Boolean)

Starts the service if not started already and resumes all downloads.

Link copied to clipboard
open fun sendSetRequirements(context: Context, clazz: Class<out DownloadService>, requirements: Requirements, foreground: Boolean)
Link copied to clipboard
open fun sendSetStopReason(context: Context, clazz: Class<out DownloadService>, id: String, stopReason: Int, foreground: Boolean)
Link copied to clipboard
open fun sendStickyBroadcast(intent: Intent)
Link copied to clipboard
Link copied to clipboard
open fun sendStickyOrderedBroadcast(intent: Intent, resultReceiver: BroadcastReceiver, scheduler: Handler, initialCode: Int, initialData: String, initialExtras: Bundle)
Link copied to clipboard
open fun sendStickyOrderedBroadcastAsUser(intent: Intent, user: UserHandle, resultReceiver: BroadcastReceiver, scheduler: Handler, initialCode: Int, initialData: String, initialExtras: Bundle)
Link copied to clipboard
open fun setTheme(resid: Int)
Link copied to clipboard
open fun setWallpaper(bitmap: Bitmap)
Link copied to clipboard
open fun start(context: Context, clazz: Class<out DownloadService>)
Link copied to clipboard
open fun startActivities(intents: Array<Intent>)
Link copied to clipboard
open fun startActivity(intent: Intent)
Link copied to clipboard
open fun startForeground(context: Context, clazz: Class<out DownloadService>)
Link copied to clipboard
Link copied to clipboard
open fun startInstrumentation(className: ComponentName, profileFile: String, arguments: Bundle): Boolean
Link copied to clipboard
open fun startIntentSender(intent: IntentSender, fillInIntent: Intent, flagsMask: Int, flagsValues: Int, extraFlags: Int)
Link copied to clipboard
open fun startService(service: Intent): ComponentName
Link copied to clipboard
fun stopForeground(removeNotification: Boolean)
Link copied to clipboard
fun stopSelf()
Link copied to clipboard
fun stopSelfResult(startId: Int): Boolean
Link copied to clipboard
open fun stopService(name: Intent): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun updateServiceGroup(conn: ServiceConnection, group: Int, importance: Int)