Packagecom.distriqt.extension.firebase.dynamiclinks
Classpublic final class FirebaseDynamicLinks
InheritanceFirebaseDynamicLinks Inheritance flash.events.EventDispatcher
Implements DynamicLinks

This class represents the Firebase Dynamic Links extension.



Public Properties
 PropertyDefined By
  implementation : String
[read-only] The implementation currently in use.
FirebaseDynamicLinks
  isSupported : Boolean
[static] [read-only] Whether the current device supports the extensions functionality
FirebaseDynamicLinks
  nativeVersion : String
[read-only] The native version string of the native extension.
FirebaseDynamicLinks
  service : FirebaseDynamicLinks
[static] [read-only] The singleton instance of the DynamicLinks class.
FirebaseDynamicLinks
  version : String
[read-only] The version of this extension.
FirebaseDynamicLinks
Public Methods
 MethodDefined By
  
Constructor You should not call this directly, but instead use the singleton access
FirebaseDynamicLinks
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
[override]
FirebaseDynamicLinks
  
createDynamicLink(linkDetails:Object):DynamicLink
Create a long dynamic link
FirebaseDynamicLinks
  
createShortDynamicLink(linkDetails:Object):Boolean
Create a dynamic link and shorten.
FirebaseDynamicLinks
  
dispose():void
Disposes the extension and releases any allocated resources.
FirebaseDynamicLinks
  
getDynamicLink(dynamicLinkUri:String, callback:Function = null):void
Attempts to decode the given dynamic link short url to extract the relevant information.
FirebaseDynamicLinks
  
init(key:String):void
Deprecated: You no longer need to call this function or use an application key
[static] Initialises the extension class for use with the provided key.
FirebaseDynamicLinks
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
[override]
FirebaseDynamicLinks
Events
 Event Summary Defined By
   Dispatched after successful link creation and shortening FirebaseDynamicLinks
  FirebaseDynamicLinks
Public Constants
 ConstantDefined By
  EXT_CONTEXT_ID : String = com.distriqt.firebase.DynamicLinks
[static]
FirebaseDynamicLinks
  VERSION : String = 10.1.0
[static]
FirebaseDynamicLinks
Property Detail
implementationproperty
implementation:String  [read-only]

The implementation currently in use. This should be one of the following depending on the platform in use and the functionality supported by this extension:


Implementation
    public function get implementation():String
isSupportedproperty 
isSupported:Boolean  [read-only]

Whether the current device supports the extensions functionality


Implementation
    public static function get isSupported():Boolean
nativeVersionproperty 
nativeVersion:String  [read-only]

The native version string of the native extension.


Implementation
    public function get nativeVersion():String
serviceproperty 
service:FirebaseDynamicLinks  [read-only]

The singleton instance of the DynamicLinks class.


Implementation
    public static function get service():FirebaseDynamicLinks

Throws
Error — If there was a problem creating or accessing the extension, or if the key is invalid
versionproperty 
version:String  [read-only]

The version of this extension.

This should be of the format, MAJOR.MINOR.BUILD


Implementation
    public function get version():String
Constructor Detail
FirebaseDynamicLinks()Constructor
public function FirebaseDynamicLinks()

Constructor You should not call this directly, but instead use the singleton access

Method Detail
addEventListener()method
override public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
useWeakReference:Boolean (default = false)

createDynamicLink()method 
public function createDynamicLink(linkDetails:Object):DynamicLink

Create a long dynamic link

Parameters

linkDetails:Object — Details for this dynamic link. This should be generated using the DynamicLinkBuilder class

Returns
DynamicLink — The dynamic link as an instance of the DynamicLink class
createShortDynamicLink()method 
public function createShortDynamicLink(linkDetails:Object):Boolean

Create a dynamic link and shorten. This call is asynchronous and will dispatch an event when complete.

Parameters

linkDetails:Object — Details for this dynamic link. This should be generated using the DynamicLinkBuilder class

Returns
Booleantrue if the link shortening started successfully and false if there was an error (check the extension is initialised correctly).
dispose()method 
public function dispose():void

Disposes the extension and releases any allocated resources. Once this function has been called, a call to init is neccesary again before any of the extensions functionality will work.

getDynamicLink()method 
public function getDynamicLink(dynamicLinkUri:String, callback:Function = null):void

Attempts to decode the given dynamic link short url to extract the relevant information. This will do two things on completion: - dispatch a DynamicLinkEvent.GET_DYNAMIC_LINK with the decoded data - attempt to call your callback function.

Parameters

dynamicLinkUri:String — The dynamic link url to decode
 
callback:Function (default = null) — A function of the form function( link:PendingDynamicLinkData ):void which will be called when the task completes

init()method 
public static function init(key:String):void
Deprecated: You no longer need to call this function or use an application key

Initialises the extension class for use with the provided key.

Parameters

key:String


Throws
Error — If there was a problem creating or accessing the extension, or if the key is invalid
removeEventListener()method 
override public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)

Event Detail
dynamiclink:created Event
Event Object Type: com.distriqt.extension.firebase.dynamiclinks.events.ShortDynamicLinkEvent
ShortDynamicLinkEvent.type property = com.distriqt.extension.firebase.dynamiclinks.events.ShortDynamicLinkEvent.LINK_CREATED

Dispatched after successful link creation and shortening
dynamiclink:error Event  
Event Object Type: com.distriqt.extension.firebase.dynamiclinks.events.ShortDynamicLinkEvent
ShortDynamicLinkEvent.type property = com.distriqt.extension.firebase.dynamiclinks.events.ShortDynamicLinkEvent.DYNAMIC_LINK_ERROR

Constant Detail
EXT_CONTEXT_IDConstant
public static const EXT_CONTEXT_ID:String = com.distriqt.firebase.DynamicLinks

VERSIONConstant 
public static const VERSION:String = 10.1.0