Package | flash.permissions |
Class | public final class PermissionManager |
Inheritance | PermissionManager EventDispatcher Object |
Language version: | ActionScript 3.0 |
Runtime version: | AIR 33.1 |
See also
Property | Defined by | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | ||
permissionStatus : String
[read-only]
Determine whether the application has been granted the permission to use resource.
| PermissionManager | ||
prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | ||
resourceType : String
[read-only]
Which resource this PermissionManager instance is responsible for
| PermissionManager |
Method | Defined by | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event.
| EventDispatcher | ||
Dispatches an event into the event flow.
| EventDispatcher | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event.
| EventDispatcher | ||
Indicates whether an object has a specified property defined.
| Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | ||
Indicates whether the specified property exists and is enumerable.
| Object | ||
Removes a listener from the EventDispatcher object.
| EventDispatcher | ||
Requests permission for the application to use the resource.
| PermissionManager | ||
Sets the availability of a dynamic property for loop operations.
| Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions.
| Object | ||
Returns the string representation of the specified object.
| Object | ||
Returns the primitive value of the specified object.
| Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type.
| EventDispatcher |
Event | Summary | Defined by | ||
---|---|---|---|---|
[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active. | EventDispatcher | |||
[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive. | EventDispatcher | |||
Dispatched when the application receives a change in permission from the OS. | PermissionManager |
permissionStatus | property |
permissionStatus:String
[read-only]
Language version: | ActionScript 3.0 |
Runtime version: | AIR 33.1 |
Determine whether the application has been granted the permission to use resource.
Implementation public function get permissionStatus():String
See also
resourceType | property |
resourceType:String
[read-only]
Language version: | ActionScript 3.0 |
Runtime version: | AIR 33.1 |
Which resource this PermissionManager instance is responsible for
Implementation public function get resourceType():String
requestPermission | () | method |
public function requestPermission():void
Language version: | ActionScript 3.0 |
Runtime version: | AIR 33.1 |
Requests permission for the application to use the resource.
PermissionStatus:PermissionEvent — dispatched when the requested permission is granted/denied by the user. |
permissionStatus | event |
flash.events.PermissionEvent
Language version: | ActionScript 3.0 |
Runtime version: | AIR 33.1 |
Dispatched when the application receives a change in permission from the OS.
Check the value of status
property to determine whether
the permission was granted or denied
See also