DownloadService

下载服务

Author

Jenly Jenly

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
App下载回调接口
Link copied to clipboard
open inner class DownloadBinder : Binder
提供绑定服务的方式进行下载

Properties

Link copied to clipboard
val ACCESSIBILITY_SERVICE: String = "accessibility"
Link copied to clipboard
val ACCOUNT_SERVICE: String = "account"
Link copied to clipboard
val ACTIVITY_SERVICE: String = "activity"
Link copied to clipboard
val ALARM_SERVICE: String = "alarm"
Link copied to clipboard
val APP_OPS_SERVICE: String = "appops"
Link copied to clipboard
val APPWIDGET_SERVICE: String = "appwidget"
Link copied to clipboard
val AUDIO_SERVICE: String = "audio"
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
val BIND_EXTERNAL_SERVICE: Int = -2147483648
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 BLUETOOTH_SERVICE: String = "bluetooth"
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 CLIPBOARD_SERVICE: String = "clipboard"
Link copied to clipboard
val COMPANION_DEVICE_SERVICE: String = "companiondevice"
Link copied to clipboard
val CONNECTIVITY_SERVICE: String = "connectivity"
Link copied to clipboard
val CONSUMER_IR_SERVICE: String = "consumer_ir"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val CROSS_PROFILE_APPS_SERVICE: String = "crossprofileapps"
Link copied to clipboard
val DEVICE_POLICY_SERVICE: String = "device_policy"
Link copied to clipboard
val DISPLAY_SERVICE: String = "display"
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 FINGERPRINT_SERVICE: String = "fingerprint"
Link copied to clipboard
val HARDWARE_PROPERTIES_SERVICE: String = "hardware_properties"
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 KEYGUARD_SERVICE: String = "keyguard"
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 LOCATION_SERVICE: String = "location"
Link copied to clipboard
val MEDIA_PROJECTION_SERVICE: String = "media_projection"
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 NSD_SERVICE: String = "servicediscovery"
Link copied to clipboard
val POWER_SERVICE: String = "power"
Link copied to clipboard
val PRINT_SERVICE: String = "print"
Link copied to clipboard
val RESTRICTIONS_SERVICE: String = "restrictions"
Link copied to clipboard
val ROLE_SERVICE: String = "role"
Link copied to clipboard
val SEARCH_SERVICE: String = "search"
Link copied to clipboard
val SENSOR_SERVICE: String = "sensor"
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
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_SERVICE: String = "phone"
Link copied to clipboard
val TELEPHONY_SUBSCRIPTION_SERVICE: String = "telephony_subscription_service"
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_INPUT_SERVICE: String = "tv_input"
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_SERVICE: String = "vibrator"
Link copied to clipboard
val WALLPAPER_SERVICE: String = "wallpaper"
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, conn: ServiceConnection, flags: Int): Boolean
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 checkCallingPermission(permission: String): Int
Link copied to clipboard
open fun checkCallingUriPermission(uri: Uri, 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 clearWallpaper()
Link copied to clipboard
open fun createConfigurationContext(overrideConfiguration: Configuration): Context
Link copied to clipboard
open fun createContextForSplit(splitName: String): Context
Link copied to clipboard
Link copied to clipboard
open fun createPackageContext(packageName: String, flags: Int): 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
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 getDir(name: String, mode: Int): 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
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
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
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 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
open fun onBind(intent: Intent): IBinder
Link copied to clipboard
Link copied to clipboard
open fun onCreate()
Link copied to clipboard
open fun onDestroy()
Link copied to clipboard
open fun onLowMemory()
Link copied to clipboard
open fun onRebind(intent: Intent)
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
Link copied to clipboard
open fun onTaskRemoved(rootIntent: Intent)
Link copied to clipboard
open fun onTrimMemory(level: Int)
Link copied to clipboard
open fun onUnbind(intent: Intent): 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 removeStickyBroadcast(intent: Intent)
Link copied to clipboard
Link copied to clipboard
open fun revokeUriPermission(uri: Uri, modeFlags: Int)
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 sendOrderedBroadcast(intent: Intent, receiverPermission: String)
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 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 startActivities(intents: Array<Intent>)
Link copied to clipboard
open fun startActivity(intent: Intent)
Link copied to clipboard
fun startForeground(id: Int, notification: Notification)
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)