| Package | com.nativeExtensions.saf |
| Class | public class DocumentEvent |
| Inheritance | DocumentEvent flash.events.Event |
| Property | Defined By | ||
|---|---|---|---|
| bookmarkData : String
Security-scoped bookmark data (iOS only). | DocumentEvent | ||
| bytes : ByteArray | DocumentEvent | ||
| content : String | DocumentEvent | ||
| file : File
iOS File property. | DocumentEvent | ||
| index : int
Index of files using SAF read multiple. | DocumentEvent | ||
| isImport : Boolean
iOS property dispatched when reading or editing is canceled. | DocumentEvent | ||
| length : int
Number of files using SAF read multiple. | DocumentEvent | ||
| uri : String | DocumentEvent | ||
| Method | Defined By | ||
|---|---|---|---|
DocumentEvent(type:String, uri:String, content:String, bytes:ByteArray, file:File, isImport:Boolean, index:int = 0, length:int = 1, bookmarkData:String = null, bubbles:Boolean = false, cancelable:Boolean = false) | DocumentEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| CANCEL : String = cancel [static]
Dispatched when SAF is canceled. | DocumentEvent | ||
| DELETE : String = delete [static]
Dispatched when a file or a directory is deleted. | DocumentEvent | ||
| EDIT : String = edit [static]
Dispatched when SAF create or edit file. | DocumentEvent | ||
| READ : String = read [static]
Dispatched when SAF get a file text content or an Uri. | DocumentEvent | ||
| READ_BYTES : String = readBytes [static]
Dispatched when SAF get a file content. | DocumentEvent | ||
| bookmarkData | property |
public var bookmarkData:StringSecurity-scoped bookmark data (iOS only).
| bytes | property |
public var bytes:ByteArray| content | property |
public var content:String| file | property |
public var file:FileiOS File property.
| index | property |
public var index:intIndex of files using SAF read multiple.
| isImport | property |
public var isImport:BooleaniOS property dispatched when reading or editing is canceled.
| length | property |
public var length:intNumber of files using SAF read multiple.
| uri | property |
public var uri:String| DocumentEvent | () | Constructor |
public function DocumentEvent(type:String, uri:String, content:String, bytes:ByteArray, file:File, isImport:Boolean, index:int = 0, length:int = 1, bookmarkData:String = null, bubbles:Boolean = false, cancelable:Boolean = false)type:String | |
uri:String | |
content:String | |
bytes:ByteArray | |
file:File | |
isImport:Boolean | |
index:int (default = 0) | |
length:int (default = 1) | |
bookmarkData:String (default = null) | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) |
| CANCEL | Constant |
public static const CANCEL:String = cancelDispatched when SAF is canceled.
| DELETE | Constant |
public static const DELETE:String = deleteDispatched when a file or a directory is deleted.
| EDIT | Constant |
public static const EDIT:String = editDispatched when SAF create or edit file.
| READ | Constant |
public static const READ:String = readDispatched when SAF get a file text content or an Uri.
| READ_BYTES | Constant |
public static const READ_BYTES:String = readBytesDispatched when SAF get a file content.