blob: bc9a40dda07709e777cad14f8fa464ddf7c3de7e [file] [log] [blame]
Mugdha Lakhanif17cbd52022-10-19 13:49:24 +00001// Signature format: 4.0
RafayKamran84935f52022-12-02 14:12:53 +00002package androidx.privacysandbox.ui.client {
3
Lucas TenĂ³rio90809fa2023-04-21 16:59:14 +01004 public interface LocalSdkActivityLauncher<T extends android.app.Activity & androidx.lifecycle.LifecycleOwner> extends androidx.privacysandbox.ui.core.SdkActivityLauncher {
5 method public void dispose();
6 }
7
RafayKamran84935f52022-12-02 14:12:53 +00008 @RequiresApi(android.os.Build.VERSION_CODES.TIRAMISU) public final class SandboxedUiAdapterFactory {
9 method public androidx.privacysandbox.ui.core.SandboxedUiAdapter createFromCoreLibInfo(android.os.Bundle coreLibInfo);
10 field public static final androidx.privacysandbox.ui.client.SandboxedUiAdapterFactory INSTANCE;
11 }
12
Lucas TenĂ³rio90809fa2023-04-21 16:59:14 +010013 public final class SdkActivityLaunchers {
14 method public static <T extends android.app.Activity & androidx.lifecycle.LifecycleOwner> androidx.privacysandbox.ui.client.LocalSdkActivityLauncher<T> createSdkActivityLauncher(T, kotlin.jvm.functions.Function0<java.lang.Boolean> allowLaunch);
15 method public static android.os.Bundle toLauncherInfo(androidx.privacysandbox.ui.core.SdkActivityLauncher);
16 }
17
RafayKamran84935f52022-12-02 14:12:53 +000018}
19
RafayKamran7d78ee42023-01-05 12:23:53 +000020package androidx.privacysandbox.ui.client.view {
21
Gavin Corkeryfb4d8a42023-04-06 15:07:54 +000022 public abstract sealed class SandboxedSdkUiSessionState {
23 }
24
25 public static final class SandboxedSdkUiSessionState.Active extends androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionState {
26 field public static final androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionState.Active INSTANCE;
27 }
28
29 public static final class SandboxedSdkUiSessionState.Error extends androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionState {
30 ctor public SandboxedSdkUiSessionState.Error(Throwable throwable);
31 method public Throwable getThrowable();
32 property public final Throwable throwable;
33 }
34
35 public static final class SandboxedSdkUiSessionState.Idle extends androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionState {
36 field public static final androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionState.Idle INSTANCE;
37 }
38
39 public static final class SandboxedSdkUiSessionState.Loading extends androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionState {
40 field public static final androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionState.Loading INSTANCE;
41 }
42
43 public fun interface SandboxedSdkUiSessionStateChangedListener {
44 method public void onStateChanged(androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionState state);
45 }
46
RafayKamran7d78ee42023-01-05 12:23:53 +000047 @RequiresApi(android.os.Build.VERSION_CODES.TIRAMISU) public final class SandboxedSdkView extends android.view.ViewGroup {
RafayKamran7d78ee42023-01-05 12:23:53 +000048 ctor public SandboxedSdkView(android.content.Context context);
Julia McClellan35128042023-05-09 10:28:47 -040049 ctor public SandboxedSdkView(android.content.Context context, optional android.util.AttributeSet? attrs);
Gavin Corkeryfb4d8a42023-04-06 15:07:54 +000050 method public void addStateChangedListener(androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionStateChangedListener stateChangedListener);
51 method public void removeStateChangedListener(androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionStateChangedListener stateChangedListener);
RafayKamran7d78ee42023-01-05 12:23:53 +000052 method public void setAdapter(androidx.privacysandbox.ui.core.SandboxedUiAdapter sandboxedUiAdapter);
RafayKamranafed3d32023-01-24 21:54:58 +000053 method public void setZOrderOnTopAndEnableUserInteraction(boolean setOnTop);
RafayKamran7d78ee42023-01-05 12:23:53 +000054 }
55
56}
57