@ExperimentalFeatures.SharedUiPresentationApi
public final class SharedUiAsset


Represents an asset comprising a native ad. Each asset is associated with a View and has an assigned assetId. For SandboxedSdkViews, allows to provide a SandboxedUiAdapter for SharedUiContainer to manage the opening of a SandboxedSdkView session. However, the session will be closed by the container before the shared UI session in any case.

No user-sensitive information should be added to the asset registered on SharedUiContainer as it will be sent to the UI provider.

Summary

Public constructors

SharedUiAsset(
    @NonNull View view,
    @NonNull String assetId,
    SandboxedUiAdapter sandboxedUiAdapter
)

Public methods

boolean
equals(Object other)
final @NonNull String
final SandboxedUiAdapter
final @NonNull View
int
@NonNull String

Public constructors

SharedUiAsset

Added in 1.0.0-alpha14
public SharedUiAsset(
    @NonNull View view,
    @NonNull String assetId,
    SandboxedUiAdapter sandboxedUiAdapter
)

Public methods

equals

public boolean equals(Object other)

getAssetId

Added in 1.0.0-alpha14
public final @NonNull String getAssetId()

getSandboxedUiAdapter

Added in 1.0.0-alpha14
public final SandboxedUiAdapter getSandboxedUiAdapter()

getView

Added in 1.0.0-alpha14
public final @NonNull View getView()

hashCode

public int hashCode()

toString

public @NonNull String toString()