DevicePolicyManager.EnableSystemApp 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| EnableSystemApp(ComponentName, String) |
重新啟用使用者初始化時預設被停用的系統應用程式。 |
| EnableSystemApp(ComponentName, Intent) |
依意在使用者初始化時預設被禁用的系統應用程式重新啟用。 |
EnableSystemApp(ComponentName, String)
重新啟用使用者初始化時預設被停用的系統應用程式。
[Android.Runtime.Register("enableSystemApp", "(Landroid/content/ComponentName;Ljava/lang/String;)V", "GetEnableSystemApp_Landroid_content_ComponentName_Ljava_lang_String_Handler")]
public virtual void EnableSystemApp(Android.Content.ComponentName? admin, string? packageName);
[<Android.Runtime.Register("enableSystemApp", "(Landroid/content/ComponentName;Ljava/lang/String;)V", "GetEnableSystemApp_Landroid_content_ComponentName_Ljava_lang_String_Handler")>]
abstract member EnableSystemApp : Android.Content.ComponentName * string -> unit
override this.EnableSystemApp : Android.Content.ComponentName * string -> unit
參數
- admin
- ComponentName
這個請求是否與該 DeviceAdminReceiver 請求相關聯,或者 null 呼叫者是否是啟用系統應用程式的委託者。
- packageName
- String
該套件將在通話設定檔中重新啟用。
- 屬性
備註
重新啟用使用者初始化時預設被停用的系統應用程式。 此函式可由裝置擁有者、設定檔擁有者,或由授權#DELEGATION_ENABLE_SYSTEM_APP#setDelegatedScopes權限的代理透過 呼叫。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
EnableSystemApp(ComponentName, Intent)
依意在使用者初始化時預設被禁用的系統應用程式重新啟用。
[Android.Runtime.Register("enableSystemApp", "(Landroid/content/ComponentName;Landroid/content/Intent;)I", "GetEnableSystemApp_Landroid_content_ComponentName_Landroid_content_Intent_Handler")]
public virtual int EnableSystemApp(Android.Content.ComponentName? admin, Android.Content.Intent? intent);
[<Android.Runtime.Register("enableSystemApp", "(Landroid/content/ComponentName;Landroid/content/Intent;)I", "GetEnableSystemApp_Landroid_content_ComponentName_Landroid_content_Intent_Handler")>]
abstract member EnableSystemApp : Android.Content.ComponentName * Android.Content.Intent -> int
override this.EnableSystemApp : Android.Content.ComponentName * Android.Content.Intent -> int
參數
- admin
- ComponentName
這個請求是否與該 DeviceAdminReceiver 請求相關聯,或者 null 呼叫者是否是啟用系統應用程式的委託者。
- intent
- Intent
意圖與要安裝的應用程式相符。 所有解析出此意圖的應用程式都會在通話設定檔中重新啟用。
傳回
int 與意圖相符且已安裝的活動數量。
- 屬性
備註
依意在使用者初始化時預設被禁用的系統應用程式重新啟用。 此函式可由裝置擁有者、設定檔擁有者,或由授權#DELEGATION_ENABLE_SYSTEM_APP#setDelegatedScopes權限的代理透過 呼叫。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。