Mugdha Lakhani | f17cbd5 | 2022-10-19 13:49:24 +0000 | [diff] [blame] | 1 | // Signature format: 4.0 |
RafayKamran | 84935f5 | 2022-12-02 14:12:53 +0000 | [diff] [blame] | 2 | package androidx.privacysandbox.ui.client { |
| 3 | |
Lucas TenĂ³rio | 90809fa | 2023-04-21 16:59:14 +0100 | [diff] [blame] | 4 | public interface LocalSdkActivityLauncher<T extends android.app.Activity & androidx.lifecycle.LifecycleOwner> extends androidx.privacysandbox.ui.core.SdkActivityLauncher { |
| 5 | method public void dispose(); |
| 6 | } |
| 7 | |
RafayKamran | 84935f5 | 2022-12-02 14:12:53 +0000 | [diff] [blame] | 8 | @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Ă³rio | 90809fa | 2023-04-21 16:59:14 +0100 | [diff] [blame] | 13 | 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 | |
RafayKamran | 84935f5 | 2022-12-02 14:12:53 +0000 | [diff] [blame] | 18 | } |
| 19 | |
RafayKamran | 7d78ee4 | 2023-01-05 12:23:53 +0000 | [diff] [blame] | 20 | package androidx.privacysandbox.ui.client.view { |
| 21 | |
Gavin Corkery | fb4d8a4 | 2023-04-06 15:07:54 +0000 | [diff] [blame] | 22 | 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 | |
RafayKamran | 7d78ee4 | 2023-01-05 12:23:53 +0000 | [diff] [blame] | 47 | @RequiresApi(android.os.Build.VERSION_CODES.TIRAMISU) public final class SandboxedSdkView extends android.view.ViewGroup { |
RafayKamran | 7d78ee4 | 2023-01-05 12:23:53 +0000 | [diff] [blame] | 48 | ctor public SandboxedSdkView(android.content.Context context); |
Julia McClellan | 3512804 | 2023-05-09 10:28:47 -0400 | [diff] [blame^] | 49 | ctor public SandboxedSdkView(android.content.Context context, optional android.util.AttributeSet? attrs); |
Gavin Corkery | fb4d8a4 | 2023-04-06 15:07:54 +0000 | [diff] [blame] | 50 | method public void addStateChangedListener(androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionStateChangedListener stateChangedListener); |
| 51 | method public void removeStateChangedListener(androidx.privacysandbox.ui.client.view.SandboxedSdkUiSessionStateChangedListener stateChangedListener); |
RafayKamran | 7d78ee4 | 2023-01-05 12:23:53 +0000 | [diff] [blame] | 52 | method public void setAdapter(androidx.privacysandbox.ui.core.SandboxedUiAdapter sandboxedUiAdapter); |
RafayKamran | afed3d3 | 2023-01-24 21:54:58 +0000 | [diff] [blame] | 53 | method public void setZOrderOnTopAndEnableUserInteraction(boolean setOnTop); |
RafayKamran | 7d78ee4 | 2023-01-05 12:23:53 +0000 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | } |
| 57 | |