Packageflash.text
Classpublic final class StageTextContentType
InheritanceStageTextContentType Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 51.0

The StageTextContentType class defines the content type/hint that is provided to mobile operating systems when using a StageText text input control. The behaviour will be different on the different platforms - for example on Android this is primarily used as a hint to an auto-fill service, whereas on iPhoneOS this can change the type/behaviour of the keyboard. One of the key uses is the SMS_OTP value which can be used to bring a one-time password from a text message into the text field. The appropriate value here should be set on the StageText.contentType property.



Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined by
  ADDRESS : String = "address"
[static]

Content is an address

StageTextContentType
  DOB : String = "date_of_birth"
[static]

Content is a date of birth

StageTextContentType
  EMAIL_ADDRESS : String = "email_address"
[static]

Content is an email address

StageTextContentType
  NAME : String = "name"
[static]

Content is a name

StageTextContentType
  OTP_SMS : String = "otp_sms"
[static]

Content is a One-Time-Password from an SMS

StageTextContentType
  PASSWORD : String = "password"
[static]

Content is a password

StageTextContentType
  PHONE_NUMBER : String = "phone_number"
[static]

Content is a phone number

StageTextContentType
Constant detail
ADDRESSconstant
public static const ADDRESS:String = "address"

Language version: ActionScript 3.0
Runtime version: AIR 51.0

Content is an address

DOBconstant 
public static const DOB:String = "date_of_birth"

Language version: ActionScript 3.0
Runtime version: AIR 51.0

Content is a date of birth

EMAIL_ADDRESSconstant 
public static const EMAIL_ADDRESS:String = "email_address"

Language version: ActionScript 3.0
Runtime version: AIR 51.0

Content is an email address

NAMEconstant 
public static const NAME:String = "name"

Language version: ActionScript 3.0
Runtime version: AIR 51.0

Content is a name

OTP_SMSconstant 
public static const OTP_SMS:String = "otp_sms"

Language version: ActionScript 3.0
Runtime version: AIR 51.0

Content is a One-Time-Password from an SMS

PASSWORDconstant 
public static const PASSWORD:String = "password"

Language version: ActionScript 3.0
Runtime version: AIR 51.0

Content is a password

PHONE_NUMBERconstant 
public static const PHONE_NUMBER:String = "phone_number"

Language version: ActionScript 3.0
Runtime version: AIR 51.0

Content is a phone number