public void Init(string clientID, string callbackUrl) { #if UNITY_IOS try { SpotifyPlayer._Init(clientID, callbackUrl); } catch (Exception ex) { UnityEngine.Debug.LogError(ex); } #endif }
public string ExecuteSpotifyAppleScript(string command) { try { var result = Marshal.PtrToStringAuto(SpotifyPlayer._ExecuteSpotifyAppleScript(command)); return(result); } catch (Exception ex) { UnityEngine.Debug.LogError(ex); } return(string.Empty); }