Package dev.turboism.sdk.appearance
Interface AppearanceService
public interface AppearanceService
A plugin's handle on the Editor appearance: read the current state, overlay its own, and put the
Editor's back.
Every operation is asynchronous and completes on the host's schedule; results are returned as
values rather than thrown, so callers branch on the outcome enums instead of catching. A plugin
may only restore an appearance it owns. Where the host offers no appearance control at all,
unavailable() supplies a conformant no-op implementation.
-
Method Summary
Modifier and TypeMethodDescriptionapply(AppearanceRequest request) current()static AppearanceService
-
Method Details
-
current
CompletionStage<AppearanceStatus> current() -
apply
-
restoreOwnedAppearance
CompletionStage<AppearanceRestoreResult> restoreOwnedAppearance()
-