public void DidEstablishConnection(SPTAppRemote appRemote)
        {
            Debug.WriteLine("Connected");
            UpdateViewBasedOnConnected();
            var playerAPI = appRemote.PlayerAPI;

            //var playerapi = Runtime.GetNSObject<SPTAppRemotePlayerAPI>(playerAPI.Handle);
            playerAPI.SetWeakDelegate(this);
            playerAPI.SubscribeToPlayerState(HandleSubscribeToPlayerStateCallback);
            FetchPlayerState();
        }
 public void DidDisconnectWithError(SPTAppRemote appRemote, NSError error)
 {
     Debug.WriteLine("Disconnected");
     UpdateViewBasedOnConnected();
     lastPlayerState = null;
 }