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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder interface for creating immutableMediaSessionActionRequestinstances. -
Method Summary
-
Method Details
-
getReason
String getReason()Gets the reason for the media session action.- Returns:
- the reason for the action.
-
setReason
Sets the reason for the media session action.- Parameters:
reason- the reason for the action to set.
-