private static void RegisterPlaybackPositionCommandReceivedEvent()
        {
            _playbackPositionCommandCallback = (clientName, requestId, playbackPosition, _) =>
            {
                var command = new PlaybackPositionCommand(playbackPosition);
                command.SetResponseInformation(clientName, requestId);

                PlaybackPositionCommandReceived?.Invoke(null, new PlaybackPositionCommandReceivedEventArgs(command));
            };
            Native.SetPlaybackPosotionCommandReceivedCb(Handle, _playbackPositionCommandCallback).
            ThrowIfError("Failed to init PlaybackPositionCommandReceived event.");
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlaybackPositionCommandReceivedEventArgs"/> class.
 /// </summary>
 /// <param name="command">The playback position command.</param>
 /// <exception cref="ArgumentNullException"><paramref name="command"/> is null.</exception>
 /// <since_tizen> 5 </since_tizen>
 public PlaybackPositionCommandReceivedEventArgs(PlaybackPositionCommand command)
 {
     Command = command ?? throw new ArgumentNullException(nameof(command));
 }