Packagecom.devilishgames.nativeextensions.Mute
Classpublic class Mute
InheritanceMute Inheritance Object

View the examples



Public Methods
 MethodDefined By
  
Enable(type:String = SOLO_AMBIENT_SOUND):void
[static] Enable mute button for AIR apps
Mute
Public Constants
 ConstantDefined By
  AMBIENT_SOUND : String = AMBIENT_SOUND
[static] App sound mute when mute button is switch off.
Mute
  EXTENSION_ID : String = com.devilishgames.nativeextensions.mute
[static] Extension ID
Mute
  MEDIA_PLAYBACK : String = MEDIA_PLAYBACK
[static] App sound don't mute when mute button is switch off.
Mute
  SOLO_AMBIENT_SOUND : String = SOLO_AMBIENT_SOUND
[static] App sound mute when mute button is switch off.
Mute
  VERSION : String = 1.0.0
[static] Current Native Extension version
Mute
Method Detail
Enable()method
public static function Enable(type:String = SOLO_AMBIENT_SOUND):void

Enable mute button for AIR apps

Parameters

type:String (default = SOLO_AMBIENT_SOUND) — Set behavior of the app with mute button and other apps

See also

AMBIENT_SOUND
SOLO_AMBIENT_SOUND
MEDIA_PLAYBACK
Constant Detail
AMBIENT_SOUNDConstant
public static const AMBIENT_SOUND:String = AMBIENT_SOUND

App sound mute when mute button is switch off. If same app, like Spotify, iPod, is playing music don't silence the app.

EXTENSION_IDConstant 
public static const EXTENSION_ID:String = com.devilishgames.nativeextensions.mute

Extension ID

MEDIA_PLAYBACKConstant 
public static const MEDIA_PLAYBACK:String = MEDIA_PLAYBACK

App sound don't mute when mute button is switch off. If same app, like Spotify, iPod, is playing music, this usually silence the app.

SOLO_AMBIENT_SOUNDConstant 
public static const SOLO_AMBIENT_SOUND:String = SOLO_AMBIENT_SOUND

App sound mute when mute button is switch off. If same app, like Spotify, iPod, is playing music, this silence the app.

VERSIONConstant 
public static const VERSION:String = 1.0.0

Current Native Extension version

Examples
The following code sets the behavior mute button to stop other apps sounds and mute out app sound when mute button is switch to off:
 
     
     Mute.Enable(Mute.SOLO_AMBIENT_SOUND);