Packagecom.myflashlab.air.extensions.richWebView.android
Classpublic class EmbeddedBrowser
InheritanceEmbeddedBrowser Inheritance flash.events.EventDispatcher

Entry point for using the Android CustomTab API. Access it via RichWebView.android.embeddedBrowser



Public Properties
 PropertyDefined By
  isSupported : Boolean
[read-only] Evaluates the current device for supporting CustomTabs and returns true if it supports it.
EmbeddedBrowser
Public Methods
 MethodDefined By
  
dispose():void
dispose the CustomTab object.
EmbeddedBrowser
  
init($mayLaunchUrl:String):void
For using the CustomTab API in Android, you must first initialize it with this method and pass in the probable first URL which it is supposed to open so it can warm-up! for faster loading the webpage.
EmbeddedBrowser
  
open($url:String, $settings:EmbeddedBrowserSettings = null):Boolean
Opens the CustomTab window over the AIR content.
EmbeddedBrowser
Public Constants
 ConstantDefined By
  CLOSED : int = 5
[static]
EmbeddedBrowser
  NAVIGATION_ABORTED : int = 4
[static]
EmbeddedBrowser
  NAVIGATION_FAILED : int = 3
[static]
EmbeddedBrowser
  NAVIGATION_FINISHED : int = 2
[static]
EmbeddedBrowser
  NAVIGATION_STARTED : int = 1
[static]
EmbeddedBrowser
Property Detail
isSupportedproperty
isSupported:Boolean  [read-only]

Evaluates the current device for supporting CustomTabs and returns true if it supports it.


Implementation
    public function get isSupported():Boolean
Method Detail
dispose()method
public function dispose():void

dispose the CustomTab object.

init()method 
public function init($mayLaunchUrl:String):void

For using the CustomTab API in Android, you must first initialize it with this method and pass in the probable first URL which it is supposed to open so it can warm-up! for faster loading the webpage.

Before initializing the CustomTab API, you should first call the isSupported method to make sure CustomTab is supported on the running device.

Parameters

$mayLaunchUrl:String

open()method 
public function open($url:String, $settings:EmbeddedBrowserSettings = null):Boolean

Opens the CustomTab window over the AIR content.

Parameters

$url:String
 
$settings:EmbeddedBrowserSettings (default = null) — if null, default values will be used.

Returns
Boolean
Constant Detail
CLOSEDConstant
public static const CLOSED:int = 5

NAVIGATION_ABORTEDConstant 
public static const NAVIGATION_ABORTED:int = 4

NAVIGATION_FAILEDConstant 
public static const NAVIGATION_FAILED:int = 3

NAVIGATION_FINISHEDConstant 
public static const NAVIGATION_FINISHED:int = 2

NAVIGATION_STARTEDConstant 
public static const NAVIGATION_STARTED:int = 1