当前位置: 首页>>代码示例>>Java>>正文


Java FREFunction类代码示例

本文整理汇总了Java中com.adobe.fre.FREFunction的典型用法代码示例。如果您正苦于以下问题:Java FREFunction类的具体用法?Java FREFunction怎么用?Java FREFunction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FREFunction类属于com.adobe.fre包,在下文中一共展示了FREFunction类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
public Map<String, FREFunction> getFunctions(){
    Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
    functionMap.put(GetDevicesFunction.KEY, new GetDevicesFunction() );
    functionMap.put(GetAccessoriesFunction.KEY, new GetAccessoriesFunction() );
    functionMap.put(RequestPermissionFunction.KEY, new RequestPermissionFunction() );
    functionMap.put(StartListenFunction.KEY, new StartListenFunction() );
    functionMap.put(StopListenFunction.KEY, new StopListenFunction() );
    functionMap.put(HasPermissionFunction.KEY, new HasPermissionFunction() );
    functionMap.put(SetActionUsbFunction.KEY, new SetActionUsbFunction() );
    functionMap.put(GetDebugStatusFunction.KEY, new GetDebugStatusFunction() );
    functionMap.put(ClearFunction.KEY, new ClearFunction() );
    functionMap.put(ConnectFunction.KEY, new ConnectFunction() );
    functionMap.put(WriteFunction.KEY, new WriteFunction() );

    return functionMap;
}
 
开发者ID:GIGATeam,项目名称:UsbExtension,代码行数:17,代码来源:UsbContext.java

示例2: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@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;
}
 
开发者ID:AlexShafir,项目名称:google-play-game-services-ane,代码行数:25,代码来源:Context.java

示例3: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@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;
}
 
开发者ID:mesmotronic,项目名称:air-ane-fullscreen,代码行数:18,代码来源:FullScreenContext.java

示例4: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@Override
public Map<String, FREFunction> getFunctions()
{
    Map<String, FREFunction> functions = new HashMap<String, FREFunction>();

    functions.put("isSupported", new IsSupportedFunction());
    functions.put("browse", new BrowseFunction());
    functions.put("getAsset", new GetAssetFunction());

    functions.put("assetInputOpen", new AssetInputOpenFunction());
    functions.put("assetInputClose", new AssetInputCloseFunction());
    functions.put("assetInputGetSize", new AssetInputGetSizeFunction());
    functions.put("assetInputReadBytes", new AssetInputReadBytesFunction());

    return functions;
}
 
开发者ID:airext,项目名称:image-picker,代码行数:17,代码来源:ExtensionContext.java

示例5: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@Override
public Map<String, FREFunction> getFunctions() {
	Map<String, FREFunction> functions = new HashMap<String, FREFunction>();
	
	functions.put("AirAACPlayer_load", new LoadFunction());
	functions.put("AirAACPlayer_prepare", new PrepareFunction());
	functions.put("AirAACPlayer_play", new PlayFunction());
	functions.put("AirAACPlayer_stop", new StopFunction());
	functions.put("AirAACPlayer_pause", new PauseFunction());
	functions.put("AirAACPlayer_getDuration", new GetDurationFunction());
	functions.put("AirAACPlayer_getProgress", new GetProgressFunction());
	functions.put("AirAACPlayer_setVolume", new SetVolumeFunction());
	functions.put("AirAACPlayer_dispose", new DisposeFunction());

	return functions;	
}
 
开发者ID:freshplanet,项目名称:ANE-AACPlayer,代码行数:17,代码来源:AirAACPlayerExtensionContext.java

示例6: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
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("setTimeout", new SetTimeoutFunction());
	functionMap.put("enableTesting", new EnableTestingFunction());
	functionMap.put("enableLogging", new EnableLoggingFunction());
	functionMap.put("hide", new HideFunction());
	functionMap.put("dispose", new DisposeFunction());
	functionMap.put("cacheInterstitial", new CacheInterstitialFunction());
	functionMap.put("showInterstitial", new ShowInterstitialFunction());

	return functionMap;
}
 
开发者ID:pozirk,项目名称:ANEAmazonAds,代码行数:17,代码来源:ExtensionContext.java

示例7: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@Override
public Map<String, FREFunction> getFunctions() {
	Map<String, FREFunction> functions = new HashMap<String, FREFunction>();

	functions.put( "init", new InitFunction() );
	functions.put( "auth", new AuthenticateFunction() );
	functions.put( "isSupported", new IsSupportedFunction() );
	functions.put( "isAuthenticated", new IsAuthenticatedFunction() );
	functions.put( "signOut", new SignOutFunction() );

	/* Achievements */
	functions.put( "unlockAchievement", new UnlockAchievementFunction() );
	functions.put( "setAchievementSteps", new SetAchievementStepsFunction() );
	functions.put( "incrementAchievement", new IncrementAchievementFunction() );
	functions.put( "setAchievementProgress", new SetAchievementProgressFunction() );
	functions.put( "showAchievementBanner", new ShowAchievementBannerFunction() );
	functions.put( "loadAchievements", new LoadAchievementsFunction() );
	functions.put( "showAchievementsUI", new ShowAchievementsUIFunction() );
	functions.put( "reportAchievements", new ReportAchievementsFunction() );
	functions.put( "resetAchievements", new ResetAchievementsFunction() );
	functions.put( "revealAchievement", new RevealAchievementFunction() );

       /* Leaderboards */
       functions.put( "reportScore", new ReportScoreFunction() );
       functions.put( "showLeaderboardsUI", new ShowLeaderboardsUIFunction() );

	return functions;
}
 
开发者ID:marpies,项目名称:game-services-ane,代码行数:29,代码来源:GameServicesExtensionContext.java

示例8: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@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;
}
 
开发者ID:marpies,项目名称:face-detection-ane,代码行数:12,代码来源:FaceDetectionExtensionContext.java

示例9: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@Override
public Map<String, FREFunction> getFunctions() {
	Map<String, FREFunction> functions = new HashMap<String, FREFunction>();

	functions.put( "init", new InitFunction() );
	functions.put( "auth", new AuthFunction() );
	functions.put( "isLoggedIn", new IsLoggedInFunction() );
	functions.put( "logout", new LogoutFunction() );
	functions.put( "request", new RequestFunction() );
	functions.put( "share", new ShareFunction() );
	functions.put( "applicationOpenURL", new ApplicationOpenURLFunction() );
	functions.put( "sdkVersion", new GetSDKVersion() );

	return functions;
}
 
开发者ID:marpies,项目名称:vk-ane,代码行数:16,代码来源:VKExtensionContext.java

示例10: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@Override
public Map<String, FREFunction> getFunctions() 
{
	Map<String, FREFunction> map = new HashMap<String, FREFunction>();
	
	map.put("register", new GCMPushRegisterFunction());
	map.put("checkRegistered", new GCMPushCheckRegisteredFunction());
	map.put("unregister", new GCMPushUnregisterFunction());
	map.put("checkPendingPayload", new GCMInitFunction());
	
	return map;
}
 
开发者ID:breealyeska,项目名称:GCMExtension,代码行数:13,代码来源:GCMPushContext.java

示例11: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@Override
public Map<String, FREFunction> getFunctions() 
{
	Map<String, FREFunction> functions = new HashMap<String, FREFunction>();
	
	functions.put("init", new InitFunction());
	functions.put("isSupported", new IsSupportedFunction());
	functions.put("immersiveWidth", new ImmersiveWidthFunction());
	functions.put("immersiveHeight", new ImmersiveHeightFunction());
	
	return functions;
}
 
开发者ID:mesmotronic,项目名称:air-ane-immersivemode,代码行数:13,代码来源:ImmersiveModeContext.java

示例12: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@Override
public Map<String, FREFunction> getFunctions() {
	Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
	functionMap.put("isInstagramAvailable", new IsInstagramAvailableFunction());
	functionMap.put("saveToInstagram", new SaveInstagramFunction());
	return functionMap;
}
 
开发者ID:sharkhack,项目名称:ShareWithInstagramAndroid,代码行数:8,代码来源:ShInstagramExtensionContext.java

示例13: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@Override
public Map<String, FREFunction> getFunctions() {
	Logger.d("ANEcontext.Map() Called"); 

	Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
	functionMap.put("init", new init());
	functionMap.put("checkAccess", new checkAccess());
	functionMap.put("promptUser", new promptUser());
	functionMap.put("openAppKey", new openAppKey());
	functionMap.put("logcatMessage", new logcatMessage());
	return functionMap;
}
 
开发者ID:AppKey,项目名称:AIR,代码行数:13,代码来源:ANEcontext.java

示例14: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
/**
 * Registers AS function name to Java Function Class
 */
@Override
public Map<String, FREFunction> getFunctions() 
{
	if(AirCapabilitiesExtension.doLogging)
		Log.d(TAG, "AirCapabilitiesExtensionContext.getFunctions");
	
	Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
	functionMap.put("hasSMS", new HasSMSFunction());
	functionMap.put("hasTwitter", new HasTwitterFunction());
	functionMap.put("sendWithSms", new SendWithSMSFunction());
	functionMap.put("sendWithTwitter", new SendWithTwitterFunction());
	functionMap.put("redirectToRating", new RedirectToRatingFunction());
	functionMap.put("getDeviceModel", new GetDeviceModelFunction());
	functionMap.put("getMachineName", new GetDeviceModelFunction()); // in android these are the same
	functionMap.put("processReferralLink", new ProcessReferralLinkFunction());
	functionMap.put("redirectToPageId", new RedirectToPageIdFunction());
	functionMap.put("redirectToTwitterAccount", new RedirectToTwitterAccountFunction());
	functionMap.put("canPostPictureOnTwitter", new HasTwitterFunction());
	functionMap.put("postPictureOnTwitter", new PostPictureOnTwitterFunction());
	functionMap.put("canOpenURL", new CanOpenURLFunction());
	functionMap.put("openURL", new OpenURLFunction());
	functionMap.put("getOSVersion", new GetOSVersionFunction());
	functionMap.put("setLogging", new SetLoggingFunction());
	functionMap.put("traceLog", new LogFunction());
	functionMap.put("hasInstagramEnabled", new HasInstagramFunction());
       functionMap.put("postPictureOnInstagram", new PostPictureOnInstagramFunction());
       functionMap.put("getCurrentMem", new GetCurrentMemFunction());
	return functionMap;	
}
 
开发者ID:freshplanet,项目名称:ANE-AirCapabilities,代码行数:33,代码来源:AirCapabilitiesExtensionContext.java

示例15: getFunctions

import com.adobe.fre.FREFunction; //导入依赖的package包/类
@Override
public Map<String, FREFunction> getFunctions() {
	Log.i(tag, "Creating function Map");
	Map<String,FREFunction> functionMap = new HashMap<String, FREFunction>();
	functionMap.put(GetIMEIFunction.KEY, new GetIMEIFunction());//�ƶ��豸��Ϣ����
	functionMap.put(GetPhoneNumber.KEY, new GetPhoneNumber());//��ȡ��ǰ�������
	functionMap.put(AlertDialogFunction.KEY, new AlertDialogFunction());
	return functionMap;
}
 
开发者ID:leonhe,项目名称:AirExtension,代码行数:10,代码来源:AirExtensionContext.java


注:本文中的com.adobe.fre.FREFunction类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。