我在应用程序源代码中找到了这一行,但我无法弄清楚两个标志之间的按位或包含运算符" | " 的含义.
notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_SINGLE_TOP);
Run Code Online (Sandbox Code Playgroud)
我在下面的行中也没有理解这个operator | =的含义:
notification.flags |= Notification.FLAG_AUTO_CANCEL;
Run Code Online (Sandbox Code Playgroud)
有人可以帮助我.