Packagecom.nativeExtensions.saf
Classpublic class DocumentEvent
InheritanceDocumentEvent Inheritance flash.events.Event

A event dispatched when a SAF event is dispatched.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined 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
Property Detail
bookmarkDataproperty
public var bookmarkData:String

Security-scoped bookmark data (iOS only).

bytesproperty 
public var bytes:ByteArray

contentproperty 
public var content:String

fileproperty 
public var file:File

iOS File property.

indexproperty 
public var index:int

Index of files using SAF read multiple.

isImportproperty 
public var isImport:Boolean

iOS property dispatched when reading or editing is canceled.

lengthproperty 
public var length:int

Number of files using SAF read multiple.

uriproperty 
public var uri:String

Constructor Detail
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)



Parameters
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)
Constant Detail
CANCELConstant
public static const CANCEL:String = cancel

Dispatched when SAF is canceled.

DELETEConstant 
public static const DELETE:String = delete

Dispatched when a file or a directory is deleted.

EDITConstant 
public static const EDIT:String = edit

Dispatched when SAF create or edit file.

READConstant 
public static const READ:String = read

Dispatched when SAF get a file text content or an Uri.

READ_BYTESConstant 
public static const READ_BYTES:String = readBytes

Dispatched when SAF get a file content.