Interface MediaSessionActionRequest


public interface MediaSessionActionRequest
Represents a request to perform an action on a media session, such as deactivation, or deletion.

Implementations of this interface provide access to the reason for the action, which can be used to provide additional context or information about the request.

To create a new instance of MediaSessionActionRequest, use the Builder pattern: MediaSessionActionRequest request = new MediaSessionActionRequestImpl.Builder() .reason(resonFortheAction) .build();

Author:
Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Builder interface for creating immutable MediaSessionActionRequest instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the reason for the media session action.
    void
    setReason(String reason)
    Sets the reason for the media session action.
  • Method Details

    • getReason

      String getReason()
      Gets the reason for the media session action.
      Returns:
      the reason for the action.
    • setReason

      void setReason(String reason)
      Sets the reason for the media session action.
      Parameters:
      reason - the reason for the action to set.