v2.6.0
Pre-release
Pre-release
此版本改用了新的C#语法,因此不再兼容旧版Unity
新增API
Device
bool IsRunningOnIpad()
是否运行在iPad上(不包括Mac)
Notification
void PushNotification(string msg, string title, string identifier, int delay, bool repeats)
原PushNotification的重载版本,支持设置repeats,循环推送通知
void PushNotification(string msg, string title, string identifier, in NSDateComponents dateComp)
支持在指定日期或时间触发通知,见 Apple UNCalendarNotificationTrigger
void PushNotification(string msg, string title, string identifier, in NSDateComponents dateComp)
上面的重载版本,支持设置repeats,可通过NSCalendarUnit指定在何时循环推送通知
NativeShare
void CopyImageToClipboard(string imagePath)
拷贝指定路径的图片到剪切板
void CopyImageToClipboard(byte[] bytes)
拷贝bytes形式的图片到剪切板
void CopyImageToClipboard(Texture2D texture)
拷贝Texture2D形式的图片到剪切板
void CopyStringToClipboard(string @string)
拷贝string到剪切板
void CopyUrlToClipboard(string url)
拷贝URL到剪切板(可以被系统识别为URL而非普通的string)
下列新增函数为原有的
void SaveImageToAlbum(string imagePath, Action<bool> callback = null)函数重载版本
void SaveImageToAlbum(byte[] bytes, Action<bool> callback = null)
保存bytes形式的图片到相册
void SaveImageToAlbum(Texture2D texture, Action<bool> callback = null)
保存Texture2D 形式的图片到相册