本文整理了Java中android.content.Context.sendBroadcastAsUser()
方法的一些代码示例,展示了Context.sendBroadcastAsUser()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Context.sendBroadcastAsUser()
方法的具体详情如下:
包路径:android.content.Context
类名称:Context
方法名:sendBroadcastAsUser
暂无
代码示例来源:origin: oasisfeng/condom
@RequiresApi(JELLY_BEAN_MR1) @SuppressLint("MissingPermission") @Override public void sendBroadcastAsUser(Intent intent, UserHandle user) {
mBase.sendBroadcastAsUser(intent, user);
}
代码示例来源:origin: oasisfeng/condom
@RequiresApi(JELLY_BEAN_MR1) @SuppressLint("MissingPermission") @Override
public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission) {
mBase.sendBroadcastAsUser(intent, user, receiverPermission);
}
代码示例来源:origin: oasisfeng/condom
tests.add(new Consumer<Intent>() { @TargetApi(JELLY_BEAN_MR1) @Override public void accept(final Intent intent) { condom.sendBroadcastAsUser(intent, USER, null); }});
tests.add(new Consumer<Intent>() { @TargetApi(JELLY_BEAN_MR1) @Override public void accept(final Intent intent) { condom.sendStickyBroadcastAsUser(intent, USER); }});
代码示例来源:origin: oasisfeng/condom
tests.add(new Consumer<Intent>() { @TargetApi(JELLY_BEAN_MR1) @Override public void accept(final Intent intent) { condom.sendBroadcastAsUser(intent, USER); }});
tests.add(new Consumer<Intent>() { @TargetApi(JELLY_BEAN_MR1) @Override public void accept(final Intent intent) { condom.sendBroadcastAsUser(intent, USER, null); }});
代码示例来源:origin: Trumeet/MiPushFramework
@RequiresApi(JELLY_BEAN_MR1) @Override public void sendBroadcastAsUser(Intent intent, UserHandle user) {
mBase.sendBroadcastAsUser(intent, user);
}
代码示例来源:origin: Trumeet/MiPushFramework
@RequiresApi(JELLY_BEAN_MR1) @Override public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission) {
mBase.sendBroadcastAsUser(intent, user, receiverPermission);
}
代码示例来源:origin: wasdennnoch/AndroidN-ify
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
Context context = (Context) XposedHelpers.getObjectField(param.thisObject, "mContext");
mCurrentMode = (Integer) XposedHelpers.callMethod(param.thisObject, "getCurrentModeIndex");
Intent intent = new Intent(LIVE_DISPLAY_MODE_CHANGED).putExtra(EXTRA_LIVE_DISPLAY_MODE, mCurrentMode);
context.sendBroadcastAsUser(intent, (UserHandle) XposedHelpers.getStaticObjectField(UserHandle.class, "CURRENT"));
}
});
内容来源于网络,如有侵权,请联系作者删除!