Packagecom.myflashlab.air.extensions.rateme
Classpublic class RateMe
InheritanceRateMe Inheritance Object

RateMe ANE lets you ask your users to rate your app in the most efficient way. i.e you can make sure you are asking for users feedback only when you are sure that they have found your app interesting and are using it frequently. RateMe ANE will let you set the number of days before the rating dialog should be promoted and also lets you set the number of app launches plus many more configurations that will help you promote the rating dialog to only those who might leave a positive feedback.

This ANE has been built based on the following two Libraries:

Make sure to take care of the permissions manually if you are targeting AIR SDK 24+: https://github.com/myflashlab/RateMe-ANE/#permissions



Public Properties
 PropertyDefined By
  api : RateMeApi
[static] [read-only] Access to the RateMe API
RateMe
Public Methods
 MethodDefined By
  
init($debugMode:Boolean = false, $appId:String = null):RateMe
[static] Call this method to initialize the RateMe ANE.
RateMe
Public Constants
 ConstantDefined By
  AMAZON : int = 2
[static] set RateMe.api.storeType to AMAZON so the ANE knows which store it should open
RateMe
  APPLE : int = 0
[static] You don't have to set the RateMe.api.storeType for the iOS side because iOS has only one store anyway.
RateMe
  EXTENSION_ID : String = com.myflashlab.air.extensions.rateMe
[static]
RateMe
  GOOGLEPLAY : int = 1
[static] set RateMe.api.storeType to GOOGLEPLAY so the ANE knows which store it should open
RateMe
  VERSION : String = 1.2.31
[static]
RateMe
Property Detail
apiproperty
api:RateMeApi  [read-only]

Access to the RateMe API


Implementation
    public static function get api():RateMeApi
Method Detail
init()method
public static function init($debugMode:Boolean = false, $appId:String = null):RateMe

Call this method to initialize the RateMe ANE.

Parameters

$debugMode:Boolean (default = false) — set it to true and the rating dialog will always be shown. This is useful for debugging reasons.
 
$appId:String (default = null) — Leave it as null and the extension will automatically find your package ID. Setting this parameter is useful when you are debugging your app and it's not yet uploaded to the stores! This way, you can point it to another app just for debugging reasons.

Returns
RateMe
Constant Detail
AMAZONConstant
public static const AMAZON:int = 2

set RateMe.api.storeType to AMAZON so the ANE knows which store it should open

APPLEConstant 
public static const APPLE:int = 0

You don't have to set the RateMe.api.storeType for the iOS side because iOS has only one store anyway.

EXTENSION_IDConstant 
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.rateMe

GOOGLEPLAYConstant 
public static const GOOGLEPLAY:int = 1

set RateMe.api.storeType to GOOGLEPLAY so the ANE knows which store it should open

VERSIONConstant 
public static const VERSION:String = 1.2.31