本文整理汇总了Java中com.lody.virtual.client.hook.secondary.ServiceConnectionDelegate.removeDelegate方法的典型用法代码示例。如果您正苦于以下问题:Java ServiceConnectionDelegate.removeDelegate方法的具体用法?Java ServiceConnectionDelegate.removeDelegate怎么用?Java ServiceConnectionDelegate.removeDelegate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.lody.virtual.client.hook.secondary.ServiceConnectionDelegate
的用法示例。
在下文中一共展示了ServiceConnectionDelegate.removeDelegate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: call
import com.lody.virtual.client.hook.secondary.ServiceConnectionDelegate; //导入方法依赖的package包/类
@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
IServiceConnection conn = (IServiceConnection) args[0];
ServiceConnectionDelegate delegate = ServiceConnectionDelegate.removeDelegate(conn);
if (delegate == null) {
return method.invoke(who, args);
}
return VActivityManager.get().unbindService(delegate);
}
示例2: unbindService
import com.lody.virtual.client.hook.secondary.ServiceConnectionDelegate; //导入方法依赖的package包/类
public boolean unbindService(Context context, ServiceConnection connection) {
try {
IServiceConnection conn = ServiceConnectionDelegate.removeDelegate(context, connection);
return getService().unbindService(conn, VUserHandle.myUserId());
} catch (RemoteException e) {
return VirtualRuntime.crash(e);
}
}
示例3: call
import com.lody.virtual.client.hook.secondary.ServiceConnectionDelegate; //导入方法依赖的package包/类
@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
IServiceConnection conn = (IServiceConnection) args[0];
ServiceConnectionDelegate delegate = ServiceConnectionDelegate.removeDelegate(conn);
if (delegate == null) {
return method.invoke(who, args);
}
return VActivityManager.get().unbindService(delegate);
}