Class MediaKey

    Definition

    Namespace:
    Tizen.System
    Assembly:
    Tizen.System.MediaKey.dll

    A class that provides methods for handling media key events.

    public static class MediaKey
    Inheritance
    object
    MediaKey
    Remarks

    This class enables developers to receive and handle events triggered by various media keys such as play/pause, volume up/down, etc. By implementing the appropriate event handlers, applications can respond accordingly to user input from these keys.

    Events

    View Source

    Event

    Adds or removes events for all media keys.

    Declaration
    public static event EventHandler<MediaKeyEventArgs> Event
    Event Type
    Type Description
    System.EventHandler<TEventArgs><MediaKeyEventArgs>
    Remarks

    By subscribing to this event, you can receive notifications about user interactions with media keys such as play/pause, volume up/down, etc. To handle these events, you need to provide a callback function that implements the EventHandler<MediaKeyEventArgs> delegate. In case of failure while reserving or releasing the key, an InvalidOperationException will be thrown.

    Exceptions
    Type Condition
    System.InvalidOperationException

    Failed to reserve or release the key.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX