本文整理汇总了Java中mirror.android.app.ActivityThreadNMR1类的典型用法代码示例。如果您正苦于以下问题:Java ActivityThreadNMR1类的具体用法?Java ActivityThreadNMR1怎么用?Java ActivityThreadNMR1使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ActivityThreadNMR1类属于mirror.android.app包,在下文中一共展示了ActivityThreadNMR1类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleNewIntent
import mirror.android.app.ActivityThreadNMR1; //导入依赖的package包/类
private void handleNewIntent(NewIntentData data) {
Intent intent;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
intent = ReferrerIntent.ctor.newInstance(data.intent, data.creator);
} else {
intent = data.intent;
}
if (ActivityThread.performNewIntents != null) {
ActivityThread.performNewIntents.call(
VirtualCore.mainThread(),
data.token,
Collections.singletonList(intent)
);
} else {
ActivityThreadNMR1.performNewIntents.call(
VirtualCore.mainThread(),
data.token,
Collections.singletonList(intent),
true);
}
}
示例2: handleNewIntent
import mirror.android.app.ActivityThreadNMR1; //导入依赖的package包/类
private void handleNewIntent(NewIntentData data) {
Intent intent;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
intent = ReferrerIntent.ctor.newInstance(data.intent, data.creator);
} else {
intent = data.intent;
}
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.N) {
ActivityThread.performNewIntents.call(
VirtualCore.mainThread(),
data.token,
Collections.singletonList(intent)
);
} else {
ActivityThreadNMR1.performNewIntents.call(
VirtualCore.mainThread(),
data.token,
Collections.singletonList(intent),
true
);
}
}