Tapslash

The Tapslash Developer Hub

Welcome to the Tapslash developer hub. Here you'll find comprehensive guides and documentation to help you start working with the SDK(s) as quickly as possible, as well as support if you get stuck slong the way. Let's jump right in!

Get Started    

Permissions

Adding Permission Code

Some services require ACCESS_COARSE_LOCATION permission, the Photos service requires READ_EXTERNAL_STORAGE permission.

You can let Slash SDK handle the permission request, or deal with the permission request manually:

slashView.setOnPermissionRequestListener(new OnPermissionRequestListener() {
    @Override
    public void requestPermission(String permission) {
        PermissionsManager.requestPermission(MainActivity.this, permission);
        // ActivityCompat.requestPermissions(MainActivity.this, new String[]{permission}, requestCode);
    }
});

In your activity, override onRequestPermissionsResult. The same as before, if you want to handle it manually, we offer this possibility.

@Override
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
    PermissionsManager.onRequestPermissionsResult(this, requestCode, permissions, grantResults);
    // Or call 'slashView.permissionsUpdated()' when you finish processing the request
}

Permissions