示例#1
0
        /// <summary>
        /// Set the visual state of the shuffle button when the internal shuffle state changes.
        /// </summary>
        /// <param name="state">The new state</param>
        void HandleShuffleStateChanged(MLMusicService.ShuffleStateType state)
        {
            switch (state)
            {
            case MLMusicService.ShuffleStateType.On:
                shuffleButton.Material = shuffleOnMaterial;
                break;

            case MLMusicService.ShuffleStateType.Off:
                shuffleButton.Material = shuffleOffMaterial;
                break;

            default:
                break;
            }
        }
示例#2
0
 /// <summary>
 /// Popagate new suffle state.
 /// </summary>
 /// <param name="state">The new shuffle state</param>
 void HandleShuffleStateChanged(MLMusicService.ShuffleStateType state)
 {
     OnShuffleStateChanged?.Invoke(state);
 }
示例#3
0
 public static extern MLResult.Code MLMusicServiceGetShuffleState(out MLMusicService.ShuffleStateType outState);
示例#4
0
 private static void HandleShuffleStateChange(MLMusicService.ShuffleStateType state, IntPtr data)
 {
     MLThreadDispatch.Call(state, OnShuffleStateChange);
 }
示例#5
0
 public static extern MLResult.Code MLMusicServiceSetShuffle(MLMusicService.ShuffleStateType mode);