DevicePolicyManager.GetCrossProfilePackages(ComponentName) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳管理員先前設定的套件名稱集合,允許透過 請求使用者同意進行跨設定檔通訊 #setCrossProfilePackages(ComponentName,
Set)。
[Android.Runtime.Register("getCrossProfilePackages", "(Landroid/content/ComponentName;)Ljava/util/Set;", "GetGetCrossProfilePackages_Landroid_content_ComponentName_Handler", ApiSince=30)]
public virtual System.Collections.Generic.ICollection<string> GetCrossProfilePackages(Android.Content.ComponentName admin);
[<Android.Runtime.Register("getCrossProfilePackages", "(Landroid/content/ComponentName;)Ljava/util/Set;", "GetGetCrossProfilePackages_Landroid_content_ComponentName_Handler", ApiSince=30)>]
abstract member GetCrossProfilePackages : Android.Content.ComponentName -> System.Collections.Generic.ICollection<string>
override this.GetCrossProfilePackages : Android.Content.ComponentName -> System.Collections.Generic.ICollection<string>
參數
- admin
- ComponentName
DeviceAdminReceiver此請求與以下相關聯
傳回
管理員先前設定的套件名稱集合,允許用戶請求跨設定檔通訊的同意,透過以下方式 #setCrossProfilePackages(ComponentName,
Set)
- 屬性
備註
回傳管理員先前設定的套件名稱集合,允許透過 請求使用者同意進行跨設定檔通訊 #setCrossProfilePackages(ComponentName, Set)。
假設來電者是設定檔擁有者,且為給定 admin的 。
請注意,未包含在退回套裝中的其他應用程式,若被 OEM 明確允許,可能可申請使用者同意進行跨設定型通訊。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。