code: def request_permission(cls, permissions):
          
          app = AndroidApplication.instance()
          f = app.create_future()
  
          def on_result(perms):
              allowed = True
              for p in permissions:
                  allowed = allowed and perms.get(p, False)
              f.set_result(allowed)
  
          app.request_permissions(permissions).then(on_result)
  
          return f
docs: Requests permission and returns an future result that returns a 
          boolean indicating if all the given permission were granted or denied.