简体   繁体   中英

onPause/onResume in a Unity plugin for Android

I'm developing a Unity plugin for an Android SDK. This SDK, in its native form, needs to receive onResume/pause notifications from the app in order to work properly. How can I get notifications for onResume/onPause from inside a Unity plugin? Thanks for your help!

You don't need an Android Unity plugin for onPause/onResume.

This unity callback is tied to Android's onPause/onResume callbacks. http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnApplicationPause.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM