当ActivityB处于 pip 模式时,我有两个活动ActivityA和ActivityB(这个启用了 pip 模式) ,现在ActivityA进入前台我想从ActivityA完成/销毁/杀死ActivityB有什么办法吗?
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val supportsPIP = context!!.packageManager.hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE)
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
if (supportsPIP) {
enterPictureInPictureMode(mPictureInPictureParamsBuilder!!.build())
}
}
}