NotificationReceiverService

abstract class NotificationReceiverService : LifecycleService


Dịch vụ cần được mở rộng để đăng ký nhận thông báo từ ứng dụng Android Management API.

Tóm tắt

Hàm khởi tạo công khai

Hàm được bảo vệ

open AccountSetupListener?

Trả về AccountSetupListener sẽ được thông báo về mọi nội dung cập nhật liên quan đến việc thiết lập tài khoản.

open AppRolesListener?

Trả về AppRolesListener sẽ được thông báo về mọi nội dung cập nhật liên quan đến vai trò của ứng dụng.

open CommandListener?

Trả về CommandListener sẽ nhận được thông báo khi nhận được các thông báo liên quan đến lệnh.

open DpcMigrationListener?

Trả về DpcMigrationListener sẽ được thông báo khi nhận được các thông báo liên quan đến quá trình di chuyển dpc.

open EnvironmentListener?

Trả về EnvironmentListener sẽ được thông báo về mọi nội dung cập nhật liên quan đến môi trường.

open Unit

Phương thức được gọi khi LifecycleService được tạo để cho phép khởi chạy các trường và đối tượng.

Hàm kế thừa

Từ android.content.Context
Từ android.content.ContextWrapper
open Boolean
bindIsolatedService(
    p0: Intent,
    p1: Int,
    p2: String,
    p3: Executor,
    p4: ServiceConnection
)
open Boolean
bindService(
    p0: Intent,
    p1: ServiceConnection,
    p2: Context.BindServiceFlags
)
open Boolean
open Boolean
bindService(
    p0: Intent,
    p1: Context.BindServiceFlags,
    p2: Executor,
    p3: ServiceConnection
)
open Boolean
bindService(p0: Intent, p1: Int, p2: Executor, p3: ServiceConnection)
open Boolean
bindServiceAsUser(
    p0: Intent,
    p1: ServiceConnection,
    p2: Context.BindServiceFlags,
    p3: UserHandle
)
open Boolean
open Int
open Int
open IntArray
open Int
open Int
open IntArray
open Int
@FlaggedApi(value = "android.security.content_uri_permission_apis")
checkContentUriPermissionFull(p0: Uri, p1: Int, p2: Int, p3: Int)
open Int
checkPermission(p0: String, p1: Int, p2: Int)
open Int
open Int
checkUriPermission(p0: Uri, p1: Int, p2: Int, p3: Int)
open Int
checkUriPermission(p0: Uri?, p1: String?, p2: String?, p3: Int, p4: Int, p5: Int)
open IntArray
checkUriPermissions(p0: MutableList<Uri>, p1: Int, p2: Int, p3: Int)
open Unit

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Context
open Context
open Context
open Context
open Context
open Context
open Context
open Context
open Context
open Context
createWindowContext(p0: Display, p1: Int, p2: Bundle?)
open Array<String>
open Boolean
open Boolean
open Boolean
open Unit
open Unit
open Unit
open Unit
open Unit
enforcePermission(p0: String, p1: Int, p2: Int, p3: String?)
open Unit
enforceUriPermission(p0: Uri, p1: Int, p2: Int, p3: Int, p4: String)
open Unit
enforceUriPermission(
    p0: Uri?,
    p1: String?,
    p2: String?,
    p3: Int,
    p4: Int,
    p5: Int,
    p6: String?
)
open Array<String>
open Context
open ApplicationInfo
open AssetManager
open AttributionSource
open String?
open Context
open File
open ClassLoader
open File
open ContentResolver
open File
open File
open Int
open File
getDir(p0: String, p1: Int)
open Display?
open File?
open Array<File>
open File?
open Array<File>
open Array<File>
open File
open File
open Executor
open Looper
open File
open File
open Array<File>
open String
open String
open PackageManager
open String
open String
open ContextParams?
open Resources
open SharedPreferences
open Any
open String?
open Resources.Theme
open Drawable

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Int

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Int

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Unit
grantUriPermission(p0: String, p1: Uri, p2: Int)
open Boolean
open Boolean
open Boolean
open Boolean
open Boolean
open FileInputStream
open FileOutputStream
open SQLiteDatabase
open SQLiteDatabase
openOrCreateDatabase(
    p0: String,
    p1: Int,
    p2: SQLiteDatabase.CursorFactory,
    p3: DatabaseErrorHandler?
)
open Drawable

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Unit
open Unit
open Unit
open Intent?
open Intent?
open Intent?
registerReceiver(
    p0: BroadcastReceiver?,
    p1: IntentFilter,
    p2: String?,
    p3: Handler?
)
open Intent?
registerReceiver(
    p0: BroadcastReceiver?,
    p1: IntentFilter,
    p2: String?,
    p3: Handler?,
    p4: Int
)
open Unit

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Unit

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Unit
open Unit
open Unit
revokeUriPermission(p0: String, p1: Uri, p2: Int)
open Unit
open Unit
open Unit
sendBroadcast(p0: Intent, p1: String?, p2: Bundle?)
open Unit
open Unit
open Unit
open Unit
open Unit
sendOrderedBroadcast(
    p0: Intent,
    p1: String?,
    p2: BroadcastReceiver?,
    p3: Handler?,
    p4: Int,
    p5: String?,
    p6: Bundle?
)
open Unit
sendOrderedBroadcast(
    p0: Intent,
    p1: String?,
    p2: Bundle?,
    p3: BroadcastReceiver?,
    p4: Handler?,
    p5: Int,
    p6: String?,
    p7: Bundle?
)
open Unit
sendOrderedBroadcast(
    p0: Intent,
    p1: String?,
    p2: String?,
    p3: BroadcastReceiver?,
    p4: Handler?,
    p5: Int,
    p6: String?,
    p7: Bundle?
)
open Unit
sendOrderedBroadcast(
    p0: Intent,
    p1: Int,
    p2: String?,
    p3: String?,
    p4: BroadcastReceiver?,
    p5: Handler?,
    p6: String?,
    p7: Bundle?,
    p8: Bundle?
)
open Unit
sendOrderedBroadcastAsUser(
    p0: Intent,
    p1: UserHandle,
    p2: String?,
    p3: BroadcastReceiver?,
    p4: Handler?,
    p5: Int,
    p6: String?,
    p7: Bundle?
)
open Unit

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Unit

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Unit

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Unit
sendStickyOrderedBroadcast(
    p0: Intent,
    p1: BroadcastReceiver?,
    p2: Handler?,
    p3: Int,
    p4: String?,
    p5: Bundle?
)

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Unit
sendStickyOrderedBroadcastAsUser(
    p0: Intent,
    p1: UserHandle,
    p2: BroadcastReceiver?,
    p3: Handler?,
    p4: Int,
    p5: String?,
    p6: Bundle?
)

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Unit
open Unit

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Unit

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Unit
open Unit
open Unit
open Unit
open ComponentName?
open Boolean
open Unit
startIntentSender(p0: IntentSender, p1: Intent?, p2: Int, p3: Int, p4: Int)
open Unit
startIntentSender(
    p0: IntentSender,
    p1: Intent?,
    p2: Int,
    p3: Int,
    p4: Int,
    p5: Bundle?
)
open ComponentName?
open Boolean
open Unit
open Unit
open Unit
open Unit
open Unit
open Unit
Từ androidx.lifecycle.LifecycleService
open Unit
open Unit
@CallSuper
onStart(intent: Intent?, startId: Int)

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

open Int
@CallSuper
onStartCommand(intent: Intent?, flags: Int, startId: Int)
Từ android.app.Service
open Unit
open Unit
Application
Int
open Unit
open Unit
open Unit
open Unit
open Unit
open Unit
onTimeout(p0: Int, p1: Int)
open Unit
open Boolean
Unit
Unit
startForeground(p0: Int, p1: Notification, p2: Int)
Unit

Hàm này không còn được dùng nữa. Không dùng nữa trong Java

Unit
Unit
Unit
Boolean

Thuộc tính được kế thừa

Từ androidx.lifecycle.LifecycleService

Hàm khởi tạo công khai

NotificationReceiverService

NotificationReceiverService()

Hàm được bảo vệ

getAccountSetupListener

protected open fun getAccountSetupListener(): AccountSetupListener?

Trả về AccountSetupListener sẽ được thông báo về mọi nội dung cập nhật liên quan đến việc thiết lập tài khoản.

getAppRolesListener

protected open fun getAppRolesListener(): AppRolesListener?

Trả về AppRolesListener sẽ được thông báo về mọi nội dung cập nhật liên quan đến vai trò của ứng dụng.

getCommandListener

protected open fun getCommandListener(): CommandListener?

Trả về CommandListener sẽ nhận được thông báo khi nhận được các thông báo liên quan đến lệnh.

getDpcMigrationListener

protected open fun getDpcMigrationListener(): DpcMigrationListener?

Trả về DpcMigrationListener sẽ được thông báo khi nhận được các thông báo liên quan đến quá trình di chuyển dpc.

getPrepareEnvironmentListener

protected open fun getPrepareEnvironmentListener(): EnvironmentListener?

Trả về EnvironmentListener sẽ được thông báo về mọi nội dung cập nhật liên quan đến môi trường.

setupInjection

protected open fun setupInjection(): Unit

Phương thức được gọi khi LifecycleService được tạo để cho phép khởi chạy các trường và đối tượng.

Các lớp con nên ghi đè phương thức này nếu muốn thiết lập tính năng chèn phần phụ thuộc.