This repository has been archived by the owner on Aug 17, 2020. It is now read-only.
ProWebView.PermissionCallback
Victor Campos edited this page Oct 15, 2017
·
1 revision
public interface PermissionCallback
Use this interface to handle the permission request. Used to ask for the following permissions:
android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_COARSE_LOCATION
android.permission.CAMERA
android.permission.RECORD_AUDIO
@RequiresApi(21) void onPermissionRequested(RequestCallback<String[]> callback, String[] permission)
This method is called to ask for:
android.permission.CAMERA
android.permission.RECORD_AUDIO
Only is used on Api >= 21
- callback: to allow or deny the permissions
- permission: an array with the requested permissions
Used to ask for the geolocation permissions. The permission android.permission.ACCESS_FINE_LOCATION
is requested if you set the ProWebView's location mode to LocationMode.MODE_FINE
or LocationMode.MODE_BOTH
. The permission android.permission.ACCESS_COARSE_LOCATION
is requested if you set the ProWebView's location mode to LocationMode.MODE_COARSE
or LocationMode.MODE_BOTH
.
- callback: a
RequestCallback<F>
with a boolean parameter to remember the selection