Class PermResponse

    • Field Detail

      • granted

        protected boolean granted
        Permission granted
    • Constructor Detail

      • PermResponse

        public PermResponse()
        Create an empty instance
      • PermResponse

        public PermResponse​(Message message,
                            ResponseInfo responseInfo)
        Create response with message and response info
        Parameters:
        message - message
        responseInfo - response info
      • PermResponse

        public PermResponse​(boolean granted)
        Create success response with perm bits String. Will have the response info set to Success
        Parameters:
        granted - true if permission is granted, false if not
    • Method Detail

      • setGranted

        public void setGranted​(boolean granted)
        Flag whether the permission is granted
        Parameters:
        granted - true if granted, false if not
      • isGranted

        public boolean isGranted()
        Flag whether the permission is granted
        Returns:
        true if granted, false if not