@ApiStatus.Internal
public interface Viewer
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the current container that this viewer is currently viewing.
|
@NotNull IFRenderContext |
getActiveContext()
This is an internal inventory-framework API that should not be used from outside of
this library.
|
@NotNull java.lang.String |
getId()
Unique identifier for this viewer used for indexing.
|
long |
getLastInteractionInMillis()
This is an internal inventory-framework API that should not be used from outside of
this library.
|
IFRenderContext |
getPreviousContext()
This is an internal inventory-framework API that should not be used from outside of
this library.
|
@NotNull ViewContainer |
getSelfContainer()
An implementation of ViewContainer for the container of this viewer.
|
boolean |
isBlockedByInteractionDelay()
If this viewer is waiting for view's
interaction delay to be able to interact again. |
boolean |
isTransitioning()
This is an internal inventory-framework API that should not be used from outside of
this library.
|
void |
open(@NotNull ViewContainer container)
Opens a container to this viewer.
|
void |
setActiveContext(@NotNull IFRenderContext context)
This is an internal inventory-framework API that should not be used from outside of
this library.
|
void |
setLastInteractionInMillis(long lastInteractionInMillis)
Updates the value that holds the timestamp of the last interaction of this viewer.
|
void |
setPreviousContext(IFRenderContext context)
This is an internal inventory-framework API that should not be used from outside of
this library.
|
void |
setTransitioning(boolean transitioning)
This is an internal inventory-framework API that should not be used from outside of
this library.
|
void |
unsetPreviousContext()
This is an internal inventory-framework API that should not be used from outside of
this library.
|
@NotNull @NotNull java.lang.String getId()
void open(@NotNull
@NotNull ViewContainer container)
container - The container that'll be opened.void close()
@NotNull @NotNull ViewContainer getSelfContainer()
@ApiStatus.Internal @NotNull @NotNull IFRenderContext getActiveContext()
@ApiStatus.Internal
void setActiveContext(@NotNull
@NotNull IFRenderContext context)
@ApiStatus.Internal long getLastInteractionInMillis()
@ApiStatus.Internal void setLastInteractionInMillis(long lastInteractionInMillis)
This is an internal inventory-framework API that should not be used from outside of this library. No compatibility guarantees are provided.
lastInteractionInMillis - Timestamp of the last interaction.@ApiStatus.Experimental boolean isBlockedByInteractionDelay()
interaction delay to be able to interact again.
This API is experimental and is not subject to the general compatibility guarantees such API may be changed or may be removed completely in any further release.
@ApiStatus.Internal boolean isTransitioning()
@ApiStatus.Internal void setTransitioning(boolean transitioning)
@ApiStatus.Internal IFRenderContext getPreviousContext()
@ApiStatus.Internal void setPreviousContext(IFRenderContext context)
@ApiStatus.Internal void unsetPreviousContext()