Bagikan melalui


FragmentHostCallback.OnRequestPermissionsFromFragment Method

Definition

Requests permissions from the given fragment.

[Android.Runtime.Register("onRequestPermissionsFromFragment", "(Landroid/app/Fragment;[Ljava/lang/String;I)V", "GetOnRequestPermissionsFromFragment_Landroid_app_Fragment_arrayLjava_lang_String_IHandler", ApiSince=23)]
public virtual void OnRequestPermissionsFromFragment (Android.App.Fragment fragment, string[] permissions, int requestCode);
[<Android.Runtime.Register("onRequestPermissionsFromFragment", "(Landroid/app/Fragment;[Ljava/lang/String;I)V", "GetOnRequestPermissionsFromFragment_Landroid_app_Fragment_arrayLjava_lang_String_IHandler", ApiSince=23)>]
abstract member OnRequestPermissionsFromFragment : Android.App.Fragment * string[] * int -> unit
override this.OnRequestPermissionsFromFragment : Android.App.Fragment * string[] * int -> unit

Parameters

fragment
Fragment
permissions
String[]
requestCode
Int32
Attributes

Remarks

Requests permissions from the given fragment. See Activity#requestPermissions(String[], int)

Java documentation for android.app.FragmentHostCallback.onRequestPermissionsFromFragment(android.app.Fragment, 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