如何在Unity应用程序中禁用Android上的通知栏?

时间:2022-08-15 17:00:52

如何在Unity应用程序中禁用Android上的通知栏?

I want to disable android notification bar from code behind in Unity application.

我想从Unity应用程序中的代码后面禁用android通知栏。

1 个解决方案

#1


2  

You can't block the notification bar from a user. That is not part of your application. Just like you can't disable the "Home" button from any Android app. It is a system level feature provided by the Android OS, not for any third-party app to control.

您无法阻止用户的通知栏。这不是您的申请的一部分。就像您无法从任何Android应用程序禁用“主页”按钮一样。它是Android操作系统提供的系统级功能,不支持任何第三方应用程序。

#1


2  

You can't block the notification bar from a user. That is not part of your application. Just like you can't disable the "Home" button from any Android app. It is a system level feature provided by the Android OS, not for any third-party app to control.

您无法阻止用户的通知栏。这不是您的申请的一部分。就像您无法从任何Android应用程序禁用“主页”按钮一样。它是Android操作系统提供的系统级功能,不支持任何第三方应用程序。