class MediaSession2 extends MediaInterface2.SessionPlayer implements AutoCloseable {

    public void setAllowedCommands(@NonNull ControllerInfo controller,
            @NonNull SessionCommandGroup2 commands) {
        mImpl.setAllowedCommands(controller, commands);
    }

      MediaSession2(SupportLibraryImpl impl);

}