Packageflash.permissions
Classpublic final class PermissionStatus
InheritancePermissionStatus Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 24.0

The PermissionStatus class is an enumeration of constant values that specify the authorization status of a permission

See also

flash.media.Camera.permissionStatus
flash.media.Microphone.permissionStatus
flash.media.CameraRoll.permissionStatus
flash.media.CameraUI.permissionStatus
flash.filesystem.File.permissionStatus
flash.sensors.Geolocation.permissionStatus
flash.net.NetworkInfo.permissionStatus


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined by
  DENIED : String = "denied"
[static] Specifies that the permission has been denied.
PermissionStatus
  GRANTED : String = "granted"
[static] Specifies that the permission has been granted.
PermissionStatus
  ONLY_WHEN_IN_USE : String = "onlyWhenInUse"
[static] Specifies that the permission has been granted only when App is in use.
PermissionStatus
  UNKNOWN : String
[static] Specifies that the permission hasn't been requested yet.
PermissionStatus
Constant detail
DENIEDconstant
public static const DENIED:String = "denied"

Language version: ActionScript 3.0
Runtime version: AIR 24.0

Specifies that the permission has been denied.

GRANTEDconstant 
public static const GRANTED:String = "granted"

Language version: ActionScript 3.0
Runtime version: AIR 24.0

Specifies that the permission has been granted.

ONLY_WHEN_IN_USEconstant 
public static const ONLY_WHEN_IN_USE:String = "onlyWhenInUse"

Language version: ActionScript 3.0
Runtime version: AIR 29.0

Specifies that the permission has been granted only when App is in use.

UNKNOWNconstant 
public static const UNKNOWN:String

Language version: ActionScript 3.0
Runtime version: AIR 24.0

Specifies that the permission hasn't been requested yet. NOTE: On Android, permissionStatus will return UNKNOWN if permission was denied with "Never ask again" option checked