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


Java ControlExtension.onDoAction方法代码示例

本文整理汇总了Java中com.sonyericsson.extras.liveware.extension.util.control.ControlExtension.onDoAction方法的典型用法代码示例。如果您正苦于以下问题:Java ControlExtension.onDoAction方法的具体用法?Java ControlExtension.onDoAction怎么用?Java ControlExtension.onDoAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sonyericsson.extras.liveware.extension.util.control.ControlExtension的用法示例。


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

示例1: doActionOnAllControls

import com.sonyericsson.extras.liveware.extension.util.control.ControlExtension; //导入方法依赖的package包/类
/**
 * Trigger action for all controls. Use this method to take the same action
 * on all controls.
 *
 * @param requestCode Code defined by the caller used to distinguish between
 *            different actions.
 * @param bundle Optional bundle with additional information.
 */
public void doActionOnAllControls(int requestCode, Bundle bundle) {
    Iterator<ControlExtension> iterator = mControls.values().iterator();
    while (iterator.hasNext()) {
        ControlExtension control = iterator.next();
        control.onDoAction(requestCode, bundle);
    }
}
 
开发者ID:fbarriga,项目名称:sony-smartband-logger,代码行数:16,代码来源:ExtensionService.java

示例2: doActionOnControl

import com.sonyericsson.extras.liveware.extension.util.control.ControlExtension; //导入方法依赖的package包/类
/**
 * Trigger action on a control.
 *
 * @param requestCode Code defined by the caller used to distinguish between
 *            different actions.
 * @param hostAppPackageName The host app package name.
 * @param bundle Optional bundle with additional information.
 *
 * @returns True if the widget exists. False otherwise.
 */
public boolean doActionOnControl(int requestCode, String hostAppPackageName, Bundle bundle) {
    ControlExtension control = mControls.get(hostAppPackageName);
    if (control != null) {
        control.onDoAction(requestCode, bundle);
        return true;
    }
    return false;
}
 
开发者ID:fbarriga,项目名称:sony-smartband-logger,代码行数:19,代码来源:ExtensionService.java

示例3: doActionOnControl

import com.sonyericsson.extras.liveware.extension.util.control.ControlExtension; //导入方法依赖的package包/类
/**
 * Trigger action on a control.
 *
 * @param requestCode Code defined by the caller used to distinguish between
 *            different actions.
 * @param hostAppPackageName The host app package name.
 * @param bundle Optional bundle with additional information.
 * @returns True if the widget exists. False otherwise.
 */
public boolean doActionOnControl(int requestCode, String hostAppPackageName, Bundle bundle) {
    ControlExtension control = mControls.get(hostAppPackageName);
    if (control != null) {
        control.onDoAction(requestCode, bundle);
        return true;
    }
    return false;
}
 
开发者ID:asamm,项目名称:locus-addon-smartwatch2,代码行数:18,代码来源:ExtensionService.java

示例4: doActionOnControl

import com.sonyericsson.extras.liveware.extension.util.control.ControlExtension; //导入方法依赖的package包/类
/**
 * Trigger action on a control.
 *
 * @param requestCode        Code defined by the caller used to distinguish between
 *                           different actions.
 * @param hostAppPackageName The host app package name.
 * @param bundle             Optional bundle with additional information.
 * @return True if the widget exists. False otherwise.
 */
public boolean doActionOnControl(int requestCode, String hostAppPackageName, Bundle bundle) {
  ControlExtension control = mControls.get(hostAppPackageName);
  if (control != null) {
    control.onDoAction(requestCode, bundle);
    return true;
  }
  return false;
}
 
开发者ID:trashkalmar,项目名称:MrParkingNavigator,代码行数:18,代码来源:ExtensionService.java

示例5: doActionOnAllControls

import com.sonyericsson.extras.liveware.extension.util.control.ControlExtension; //导入方法依赖的package包/类
/**
 * Trigger action for all controls. Use this method to take the same action
 * on all controls.
 *
 * @param requestCode Code defined by the caller used to distinguish between
 *                    different actions.
 * @param bundle      Optional bundle with additional information.
 */
public void doActionOnAllControls(int requestCode, Bundle bundle) {
  for (ControlExtension control : mControls.values())
    control.onDoAction(requestCode, bundle);
}
 
开发者ID:trashkalmar,项目名称:MrParkingNavigator,代码行数:13,代码来源:ExtensionService.java


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