本文整理汇总了Java中org.thoughtcrime.securesms.database.SmsMigrator.ProgressDescription类的典型用法代码示例。如果您正苦于以下问题:Java ProgressDescription类的具体用法?Java ProgressDescription怎么用?Java ProgressDescription使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProgressDescription类属于org.thoughtcrime.securesms.database.SmsMigrator包,在下文中一共展示了ProgressDescription类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleMessage
import org.thoughtcrime.securesms.database.SmsMigrator.ProgressDescription; //导入依赖的package包/类
@Override
public void handleMessage(Message message) {
switch (message.what) {
case ImportState.STATE_IDLE: handleStateIdle(); break;
case ImportState.STATE_MIGRATING_IN_PROGRESS: handleStateProgress((ProgressDescription)message.obj); break;
case ImportState.STATE_MIGRATING_COMPLETE: handleImportComplete(); break;
}
}
示例2: progressUpdate
import org.thoughtcrime.securesms.database.SmsMigrator.ProgressDescription; //导入依赖的package包/类
@Override
public void progressUpdate(ProgressDescription progress) {
setState(new ImportState(ImportState.STATE_MIGRATING_IN_PROGRESS, progress));
}
示例3: ImportState
import org.thoughtcrime.securesms.database.SmsMigrator.ProgressDescription; //导入依赖的package包/类
public ImportState(int state, ProgressDescription progress) {
this.state = state;
this.progress = progress;
}