Share via


MockPackageManager.GetTextFormatted(String, Int32, ApplicationInfo) Method

Definition

Retrieve text from a package.

[Android.Runtime.Register("getText", "(Ljava/lang/String;ILandroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;", "GetGetText_Ljava_lang_String_ILandroid_content_pm_ApplicationInfo_Handler")]
public override Java.Lang.ICharSequence? GetTextFormatted (string? packageName, int resid, Android.Content.PM.ApplicationInfo? appInfo);
[<Android.Runtime.Register("getText", "(Ljava/lang/String;ILandroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;", "GetGetText_Ljava_lang_String_ILandroid_content_pm_ApplicationInfo_Handler")>]
override this.GetTextFormatted : string * int * Android.Content.PM.ApplicationInfo -> Java.Lang.ICharSequence

Parameters

packageName
String

The name of the package that this text is coming from. Cannot be null.

resid
Int32

The resource identifier of the desired text. Cannot be 0.

appInfo
ApplicationInfo

Overall information about packageName. This may be null, in which case the application information will be retrieved for you if needed; if you already have this information around, it can be much more efficient to supply it here.

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to