• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Receiver类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: onExportAuditDone

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = AuditExportService.EXPORT_SUCCESS, local = true, registerAt = Receiver.RegisterAt.OnResumeOnPause)
@UiThread(propagation = UiThread.Propagation.REUSE)
void onExportAuditDone(@Receiver.Extra String path) {
    setLoading(false);

    exportFile = new File(path);

    switch (exportAction) {
        case ACTION_SHARE_DOCUMENT: {
            shareDocument(path);
            break;
        }

        case ACTION_SAVE_DOCUMENT: {
            saveDocument(path);
            break;
        }
    }
}
 
开发者ID:Orange-OpenSource,项目名称:ocara,代码行数:20,代码来源:ResultAuditActivity.java


示例2: onExportAuditDone

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = AuditExportService.EXPORT_SUCCESS, local = true, registerAt = Receiver.RegisterAt.OnResumeOnPause)
@UiThread(propagation = UiThread.Propagation.REUSE)
void onExportAuditDone(@Receiver.Extra String path) {
    setLoading(false);

    exportFile = new File(path);

    switch (exportAction) {
        case EXPORT_ACTION_SHARE: {

            // create an intent, so the user can choose which application he/she wants to use to share this file
            final Intent intent = ShareCompat.IntentBuilder.from(this)
                    .setType(MimeTypeMap.getSingleton().getMimeTypeFromExtension(MimeTypeMap.getFileExtensionFromUrl(path)))
                    .setStream(FileProvider.getUriForFile(this, "com.orange.ocara", exportFile))
                    .setChooserTitle("How do you want to share?")
                    .createChooserIntent()
                    .addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET)
                    .addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);

            startActivity(intent);
            break;
        }

        case EXPORT_ACTION_SAVE: {
            createNewDocument(path);
            break;
        }
    }
}
 
开发者ID:Orange-OpenSource,项目名称:ocara,代码行数:30,代码来源:ListAuditActivity.java


示例3: onExportAuditDocxFailed

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = AuditExportService.EXPORT_FAILED, local = true, registerAt = Receiver.RegisterAt.OnResumeOnPause)
@UiThread(propagation = UiThread.Propagation.REUSE)
void onExportAuditDocxFailed() {
    setLoading(false);

    onExportAuditDocxFinished();
}
 
开发者ID:Orange-OpenSource,项目名称:ocara,代码行数:8,代码来源:ResultAuditActivity.java


示例4: onRainbowWipeComplete

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = StripControlService.RAINBOW_WIPE_COMPLETE, registerAt = Receiver.RegisterAt.OnResumeOnPause)
void onRainbowWipeComplete() {
    boundService.initStrip(adapter.getColors());
    Toast.makeText(getActivity(), "ready",
            Toast.LENGTH_LONG).show();
    isReadyForInput = true;
}
 
开发者ID:tmay,项目名称:BluetoothBacon,代码行数:8,代码来源:LedStripFragment.java


示例5: showErrorDialog

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = {Broadcasts.ERROR_MESSAGE},
        registerAt = Receiver.RegisterAt.OnResumeOnPause)
public void showErrorDialog(
        @Receiver.Extra(Broadcasts.Extras.ERROR_HEADER) String header,
        @Receiver.Extra(Broadcasts.Extras.ERROR_REASON) String reason) {
    CreateDialogBroadcastReceiverHelper.showErrorDialog(getFragmentManager(), header, reason);
}
 
开发者ID:oVirt,项目名称:moVirt,代码行数:8,代码来源:BroadcastAwareAppCompatActivity.java


示例6: showCertificateDialog

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = {Broadcasts.REST_CA_FAILURE},
        registerAt = Receiver.RegisterAt.OnResumeOnPause)
public void showCertificateDialog(
        @Receiver.Extra(Broadcasts.Extras.ERROR_ACCOUNT) MovirtAccount account,
        @Receiver.Extra(Broadcasts.Extras.ERROR_REASON) String reason,
        @Receiver.Extra(Broadcasts.Extras.ERROR_API_URL) String apiUrl) {
    CreateDialogBroadcastReceiverHelper.showCertificateDialog(getFragmentManager(), account, reason, apiUrl);
}
 
开发者ID:oVirt,项目名称:moVirt,代码行数:9,代码来源:BroadcastAwareAppCompatActivity.java


示例7: onTablesCleared

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = DatabaseHelper.ACTION_TABLES_CLEARED)
protected void onTablesCleared() {
	if (articleFrame != null) {
		articleFrame.removeAllViews();
		article = null;
	}
}
 
开发者ID:yDelouis,项目名称:selfoss-android,代码行数:8,代码来源:MainActivity.java


示例8: notifButClick

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = "onNotifButClick")
protected void notifButClick() {
    stopSelf();
}
 
开发者ID:WrBug,项目名称:wtshanxun,代码行数:5,代码来源:HeartService.java


示例9: isConnectedReceiver

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = HueConfigureActivity.IsConnectedAction, local = true, registerAt = Receiver
    .RegisterAt.OnCreateOnDestroy)
void isConnectedReceiver()
{
  buttonConfigureLights.setEnabled(hueController.isConnected());
}
 
开发者ID:thht,项目名称:ambilike,代码行数:7,代码来源:HueConfigureActivity.java


示例10: exportAuditDocxFailed

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = AuditExportService.EXPORT_FAILED, local = true, registerAt = Receiver.RegisterAt.OnResumeOnPause)
@UiThread(propagation = UiThread.Propagation.REUSE)
void exportAuditDocxFailed() {
    setLoading(false);
}
 
开发者ID:Orange-OpenSource,项目名称:ocara,代码行数:6,代码来源:ListAuditActivity.java


示例11: pauseGameReceived

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = ACTION_PAUSE, local = true, registerAt = Receiver.RegisterAt.OnResumeOnPause)
void pauseGameReceived() {
	showPausedMenu();
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:5,代码来源:MapFragment.java


示例12: unPauseGameReceived

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = ACTION_UNPAUSE, local = true, registerAt = Receiver.RegisterAt.OnStartOnStop)
void unPauseGameReceived() {
	gameMenu.unMute();
	dismissPausedMenu();
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:6,代码来源:MapFragment.java


示例13: onActionQuitConfirm

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = ACTION_QUIT_CONFIRM, local = true)
void onActionQuitConfirm() {
	finish();
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:5,代码来源:GameActivity.java


示例14: quitReceived

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = ACTION_QUIT, local = true)
void quitReceived() {
	presenter.updateResumeGameView();
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:5,代码来源:MainMenuFragment.java


示例15: quitConfirmReceived

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = ACTION_QUIT_CONFIRM, local = true)
void quitConfirmReceived() {
	presenter.updateResumeGameView();
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:5,代码来源:MainMenuFragment.java


示例16: quitCancelled

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = ACTION_QUIT_CANCELLED, local = true)
void quitCancelled() {
	presenter.updateResumeGameView();
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:5,代码来源:MainMenuFragment.java


示例17: pauseReceived

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = ACTION_PAUSE, local = true)
void pauseReceived() {
	presenter.updateResumeGameView();
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:5,代码来源:MainMenuFragment.java


示例18: unpauseReceived

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = ACTION_UNPAUSE, local = true)
void unpauseReceived() {
	presenter.updateResumeGameView();
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:5,代码来源:MainMenuFragment.java


示例19: quitConfirmReceived

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = ACTION_QUIT_CONFIRM, local = true)
void quitConfirmReceived() {
	stopForeground(true);
	stopSelf();
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:6,代码来源:GameService.java


示例20: onGattServiceDiscovery

import org.androidannotations.annotations.Receiver; //导入依赖的package包/类
@Receiver(actions = StripControlService.ACTION_GATT_SERVICES_DISCOVERED, registerAt = Receiver.RegisterAt.OnResumeOnPause)
void onGattServiceDiscovery() {
    Toast.makeText(getActivity(), "Warming up",
            Toast.LENGTH_LONG).show();
    boundService.doRainbowWipe();
}
 
开发者ID:tmay,项目名称:BluetoothBacon,代码行数:7,代码来源:LedStripFragment.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MultiLabelInstances类代码示例发布时间:2022-05-22
下一篇:
Java TemplateModule类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap