Język

MockPackageManager.GetApplicationLabel(ApplicationInfo) Method

Definition

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

public string? GetApplicationLabel(Android.Content.PM.ApplicationInfo? info);
override this.GetApplicationLabel : Android.Content.PM.ApplicationInfo -> string

Parameters

info
ApplicationInfo

The application information. Passed to GetApplicationLabelFormatted; its default mock implementation does not use this argument.

Returns

No value is returned by the default mock. This wrapper calls GetApplicationLabelFormatted, 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