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


Java Receiver类代码示例

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


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


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