本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}