private static void RegisterDisplayModeCommandReceivedEvent()
        {
            _displayModeCommandCallback = (clientName, requestId, mode, _) =>
            {
                var command = new DisplayModeCommand(mode.ToPublic());
                command.SetResponseInformation(clientName, requestId);

                DisplayModeCommandReceived?.Invoke(null, new DisplayModeCommandReceivedEventArgs(command));
            };
            Native.SetDisplayModeCommandReceivedCb(Handle, _displayModeCommandCallback).
            ThrowIfError("Failed to init DisplayModeCommandReceived event.");
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="DisplayModeCommandReceivedEventArgs"/> class.
 /// </summary>
 /// <param name="command">The display mode command.</param>
 /// <exception cref="ArgumentNullException"><paramref name="command"/> is null.</exception>
 /// <since_tizen> 6 </since_tizen>
 internal DisplayModeCommandReceivedEventArgs(DisplayModeCommand command)
 {
     Command = command ?? throw new ArgumentNullException(nameof(command));
 }