SessionObserverContext


public final class SessionObserverContext


A class containing information that will be constant through the lifetime of a SessionObserver.

When SessionObserver.onSessionClosed is called for the associated session observers, the resources of the SessionObserverContext will be freed.

Summary

Public constructors

SessionObserverContext(
    View view,
    @NonNull Set<@NonNull String> supportedSignalOptions
)

Public methods

boolean
equals(Object other)
final @NonNull Set<@NonNull String>

Returns the signal options which are supported by the container hosting the UI session.

final View

Returns the view that is presenting content for the associated SandboxedUiAdapter.Session.

int
@NonNull String

Public constructors

SessionObserverContext

Added in 1.0.0-alpha15
public SessionObserverContext(
    View view,
    @NonNull Set<@NonNull String> supportedSignalOptions
)

Public methods

equals

public boolean equals(Object other)

getSupportedSignalOptions

Added in 1.0.0-alpha15
public final @NonNull Set<@NonNull StringgetSupportedSignalOptions()

Returns the signal options which are supported by the container hosting the UI session.

getView

Added in 1.0.0-alpha15
public final View getView()

Returns the view that is presenting content for the associated SandboxedUiAdapter.Session.

This value will be non-null if the SandboxedUiAdapter.Session and the SessionObserver are created from the same process. Otherwise, it will be null.

hashCode

public int hashCode()

toString

public @NonNull String toString()