///<Summary> /// Initialize the class in Objective-c to save album to photo album ///</Summary> public static void Init() { #if UNITY_IOS if (Application.platform == RuntimePlatform.IPhonePlayer) { if (ReceivedOnCompleteEvent == null) { ReceivedOnCompleteEvent = new UnityEvent(); } initialize(); onCompleteDelegate = delegateOnCompleteReceived; setOnCompleteCallback(onCompleteDelegate); } #else Debug.Log("Called Create on Save To Album"); #endif }
private static extern void setOnCompleteCallback(OnCompleteDelegateMessage callback);