Java源码示例:com.adobe.fre.FREFunction

示例1
@Override
public Map<String, FREFunction> getFunctions() {
	Map<String, FREFunction> map = new HashMap<String, FREFunction>();

	map.put("Leaderboards.submitScore", new Leaderboards.submitScore());
	map.put("Leaderboards.showAll", new Leaderboards.showAll());
	map.put("Leaderboards.show", new Leaderboards.show());

	map.put("Achievements.reveal", new Achievements.reveal());
	map.put("Achievements.unlock", new Achievements.unlock());
	map.put("Achievements.increment", new Achievements.increment());
	map.put("Achievements.show", new Achievements.show());

	map.put("beginUserInitiatedSignIn", new beginUserInitiatedSignIn());
	map.put("signOut", new signOut());
	map.put("promptUserToSignInOnStartup",
			new promptUserToSignInOnStartup());
	map.put("isSignedIn",
			new isSignedIn());
	map.put("start",
			new start());

	return map;
}
 
示例2
@Override
public Map<String, FREFunction> getFunctions() 
{
	Map<String, FREFunction> functions = new HashMap<String, FREFunction>();
	
	functions.put("init", new InitFunction());
	functions.put("leanMode", new LeanModeFunction());
	functions.put("immersiveMode", new ImmersiveModeFunction());
	functions.put("immersiveHeight", new ImmersiveHeightFunction());
	functions.put("immersiveWidth", new ImmersiveWidthFunction());
	functions.put("isImmersiveModeSupported", new IsImmersiveModeSupportedFunction());
	functions.put("setSystemUiVisibility", new SetSystemUiVisibilityFunction());
	functions.put("showSystemUI", new ShowSystemUiFunction());
	functions.put("showUnderSystemUI", new ShowUnderSystemUiFunction());
	
	return functions;
}
 
示例3
@Override
public Map<String, FREFunction> getFunctions() {

	Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
	functionMap.put("checkLicenseNative", new AndroidLicensing() );

	return functionMap;
}
 
示例4
@Override
public Map<String, FREFunction> getFunctions() {
	Map<String, FREFunction> functions = new HashMap<String, FREFunction>();

	functions.put( "detect", new DetectFacesFunction() );
	functions.put( "setLogEnabled", new SetLogEnabledFunction() );
	functions.put( "isOperational", new IsOperationalFunction() );
	functions.put( "isAvailable", new IsAvailableFunction() );

	return functions;
}
 
示例5
@Override
public Map<String, FREFunction> getFunctions() {
	Map<String, FREFunction> functions = new HashMap<String, FREFunction>();
	
	functions.put("AirCrashlyticsStart", new StartFunction());
	functions.put("AirCrashlyticsCrash", new CrashFunction());
	functions.put("AirCrashlyticsGetApiKey", new GetApiKeyFunction());
	functions.put("AirCrashlyticsGetVersion", new GetVersionFunction());
	functions.put("AirCrashlyticsSetUserIdentifier", new SetUserIdentifierFunction());
	functions.put("AirCrashlyticsSetBool", new SetBoolFunction());
	functions.put("AirCrashlyticsSetInt", new SetIntFunction());
	functions.put("AirCrashlyticsSetFloat", new SetFloatFunction());
	functions.put("AirCrashlyticsSetString", new SetStringFunction());
	return functions;	
}
 
示例6
@Override
public Map<String, FREFunction> getFunctions()
{
	Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
	functionMap.put("startAtLaunch", new AirGooglePlayStartAtLaunch());
	functionMap.put("signIn", new AirGooglePlayGamesSignInFunction());
	functionMap.put("signOut", new AirGooglePlayGamesSignOutFunction());
	functionMap.put("reportAchievemnt", new AirGooglePlayGamesReportAchievementFunction());
	functionMap.put("reportScore", new AirGooglePlayGamesReportScoreFunction());
	functionMap.put("showStandardAchievements", new AirGooglePlayGamesShowAchievementsFunction());
	functionMap.put("getActivePlayerName", new AirGooglePlayGamesGetActivePlayerName());
       functionMap.put("getLeaderboard", new AirGooglePlayGamesGetLeaderboardFunction());
	return functionMap;
}
 
示例7
public Map<String, FREFunction> getFunctions()
{
	Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();

	functionMap.put("init", new InitFunction());
	functionMap.put("show", new ShowFunction());
	functionMap.put("hide", new HideFunction());
	functionMap.put("cacheInterstitial", new CacheInterstitialFunction());
	functionMap.put("showInterstitial", new ShowInterstitialFunction());
	functionMap.put("dispose", new DisposeFunction());
	functionMap.put("setVolume", new SetVolumeFunction());

	return functionMap;
}
 
示例8
@Override
public Map<String, FREFunction> getFunctions()
{
	Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
	functionMap.put("init", new InitFunction());
	functionMap.put("purchase", new PurchaseFunction());
	functionMap.put("restore", new RestoreFunction());
	functionMap.put("consume", new ConsumeFunction());
	functionMap.put("getPurchaseDetails", new GetPurchaseDetailsFunction());
	functionMap.put("getSkuDetails", new GetSkuDetailsFunction());
	return functionMap;	
}
 
示例9
@Override
public Map<String, FREFunction> getFunctions() {

	Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();

	final AndroidLicensing checkLicenseNative = new AndroidLicensing();
	functionMap.put("checkLicenseNative", checkLicenseNative);

	final Trace trace = new Trace(this);
	functionMap.put("trace", trace);

	final DeviceId deviceid = new DeviceId(this);
	functionMap.put("deviceid", deviceid);

	final NotificationInit notificationinit = new NotificationInit(this);
	functionMap.put("notificationinit", notificationinit);

	final NotificationStart notificationstart = new NotificationStart(this, notificationinit);
	functionMap.put("notificationstart", notificationstart);

	final NotificationStop notificationstop = new NotificationStop(this, notificationinit);
	functionMap.put("notificationstop", notificationstop);

	final SslGet sslget = new SslGet(this);
	functionMap.put("sslget", sslget);

	final Lookup lookup = new Lookup(this);
	functionMap.put("lookup", lookup);

	final Cancel cancel = new Cancel(this, lookup);
	functionMap.put("cancel", cancel);

	final TcpInit tcp_init = new TcpInit(this);
	functionMap.put("tcpinit", tcp_init);

	final TcpReadBytes tcp_read_bytes = new TcpReadBytes(this, tcp_init);
	functionMap.put("tcpreadbytes", tcp_read_bytes);

	final TcpWriteBytes tcp_write_bytes = new TcpWriteBytes(this, tcp_init);
	functionMap.put("tcpwritebytes", tcp_write_bytes);

	final TcpCloseSocket tcp_close_socket = new TcpCloseSocket(this, tcp_init);
	functionMap.put("tcpclosesocket", tcp_close_socket);

	return functionMap;
}