語言

MockPackageManager.GetActivityBanner 方法

定義

多載

名稱 Description
GetActivityBanner(ComponentName)

取回與活動相關的橫幅。

GetActivityBanner(Intent)

取回與意圖相關聯的旗幟。

GetActivityBanner(ComponentName)

取回與活動相關的橫幅。

[Android.Runtime.Register("getActivityBanner", "(Landroid/content/ComponentName;)Landroid/graphics/drawable/Drawable;", "GetGetActivityBanner_Landroid_content_ComponentName_Handler")]
public override Android.Graphics.Drawables.Drawable? GetActivityBanner(Android.Content.ComponentName? activityName);
[<Android.Runtime.Register("getActivityBanner", "(Landroid/content/ComponentName;)Landroid/graphics/drawable/Drawable;", "GetGetActivityBanner_Landroid_content_ComponentName_Handler")>]
override this.GetActivityBanner : Android.Content.ComponentName -> Android.Graphics.Drawables.Drawable

參數

activityName
ComponentName

要取回橫幅的活動名稱。

傳回

沒有任何價值回傳。 預設的模擬實作拋 UnsupportedOperationException出 ;覆寫此方法以提供測試結果。

屬性

例外狀況

不是預設的模擬實作丟出,而是投擲 UnsupportedOperationException 。 測試覆寫可以自行提供行為。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

GetActivityBanner(Intent)

取回與意圖相關聯的旗幟。

[Android.Runtime.Register("getActivityBanner", "(Landroid/content/Intent;)Landroid/graphics/drawable/Drawable;", "GetGetActivityBanner_Landroid_content_Intent_Handler")]
public override Android.Graphics.Drawables.Drawable? GetActivityBanner(Android.Content.Intent? intent);
[<Android.Runtime.Register("getActivityBanner", "(Landroid/content/Intent;)Landroid/graphics/drawable/Drawable;", "GetGetActivityBanner_Landroid_content_Intent_Handler")>]
override this.GetActivityBanner : Android.Content.Intent -> Android.Graphics.Drawables.Drawable

參數

intent
Intent

你想要取回旗幟的意圖。

傳回

沒有任何價值回傳。 預設的模擬實作拋 UnsupportedOperationException出 ;覆寫此方法以提供測試結果。

屬性

例外狀況

不是預設的模擬實作丟出,而是投擲 UnsupportedOperationException 。 測試覆寫可以自行提供行為。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於