Language

MockPackageManager.GetReceiverInfo(ComponentName, PackageInfoFlags) メソッド

定義

特定の受信側クラスについて知っているすべての情報を取得します。

[Android.Runtime.Register("getReceiverInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;", "GetGetReceiverInfo_Landroid_content_ComponentName_IHandler")]
public override Android.Content.PM.ActivityInfo? GetReceiverInfo(Android.Content.ComponentName? className, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getReceiverInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;", "GetGetReceiverInfo_Landroid_content_ComponentName_IHandler")>]
override this.GetReceiverInfo : Android.Content.ComponentName * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.ActivityInfo

パラメーター

className
ComponentName

Receiver クラスの完全なコンポーネント名 (i.e. com.google.apps.calendar/com.google.apps.calendar.CalendarAlarm)。

flags
PackageInfoFlags

追加のオプション フラグ。 MetaData SharedLibraryFilesの任意の組み合わせを使用して、返されるデータを変更します。

戻り値

値は返されません。 既定のモック実装では、 UnsupportedOperationExceptionがスローされ、このメソッドがオーバーライドされ、テスト結果が提供されます。

属性

例外

代わりに UnsupportedOperationException をスローする既定のモック実装ではスローされません。 テストオーバーライドは、独自の動作を提供できます。

注釈

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象