Język

MockPackageManager.GetText(String, Int32, ApplicationInfo) Method

Definition

Calls GetTextFormatted and converts its result to a string. The default mock implementation throws UnsupportedOperationException.

public string? GetText(string? packageName, int resid, Android.Content.PM.ApplicationInfo? appInfo);
override this.GetText : string * int * Android.Content.PM.ApplicationInfo -> string

Parameters

packageName
String

The package name. Passed to GetTextFormatted; its default mock implementation does not use this argument.

resid
Int32

The resource ID. Passed to GetTextFormatted; its default mock implementation does not use this argument.

appInfo
ApplicationInfo

The application information for the resource. Passed to GetTextFormatted; its default mock implementation does not use this argument.

Returns

No value is returned by the default mock. This wrapper calls GetTextFormatted, whose default implementation throws UnsupportedOperationException.

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