Compartilhar via


StorageManager.GetManageSpaceActivityIntent(String, Int32) Method

Definition

Returns a PendingIntent that can be used by Apps with android.Manifest.permission#MANAGE_EXTERNAL_STORAGE permission to launch the manageSpaceActivity for any App that implements it, irrespective of its exported status.

[Android.Runtime.Register("getManageSpaceActivityIntent", "(Ljava/lang/String;I)Landroid/app/PendingIntent;", "GetGetManageSpaceActivityIntent_Ljava_lang_String_IHandler", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_EXTERNAL_STORAGE")]
public virtual Android.App.PendingIntent? GetManageSpaceActivityIntent (string packageName, int requestCode);
[<Android.Runtime.Register("getManageSpaceActivityIntent", "(Ljava/lang/String;I)Landroid/app/PendingIntent;", "GetGetManageSpaceActivityIntent_Ljava_lang_String_IHandler", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_EXTERNAL_STORAGE")>]
abstract member GetManageSpaceActivityIntent : string * int -> Android.App.PendingIntent
override this.GetManageSpaceActivityIntent : string * int -> Android.App.PendingIntent

Parameters

packageName
String

package name for the App for which manageSpaceActivity is to be launched

requestCode
Int32

for launching the activity

Returns

PendingIntent to launch the manageSpaceActivity if successful, null if the packageName doesn't have a manageSpaceActivity.

Attributes

Remarks

Returns a PendingIntent that can be used by Apps with android.Manifest.permission#MANAGE_EXTERNAL_STORAGE permission to launch the manageSpaceActivity for any App that implements it, irrespective of its exported status.

Caller has the responsibility of supplying a valid packageName which has manageSpaceActivity implemented.

Java documentation for android.os.storage.StorageManager.getManageSpaceActivityIntent(java.lang.String, int).

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