예제 #1
0
        public void Awake()
        {
            AndroidJavaObject activityContext = LibraryConfig.Instance.context;
            AndroidJavaObject resource        = activityContext.Call <AndroidJavaObject>("getResources");
            string            packageName     = activityContext.Call <string>("getPackageName");

            configData = new NotificationConfigData();
            configData.Priority(priority);
            configData.AutoCancel(autoCancel);
            configData.SmallIcon(smallIconName);
            configData.SmallIcon(largeIconName);
            configData.BigPicture(bigPictureName);

            int soundRes = -1;

            if (soundName != null)
            {
                soundRes = resource.Call <int>("getIdentifier", soundName, "raw", packageName);
            }

            isSet = true;
        }
예제 #2
0
 public void SetNotificationConfig(NotificationConfigData config)
 {
     nConfig = config;
 }