- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
276 lines
7.6 KiB
Java
276 lines
7.6 KiB
Java
package com.google.android.gms.measurement.api;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresPermission;
|
|
import androidx.annotation.Size;
|
|
import androidx.annotation.WorkerThread;
|
|
import com.google.android.gms.common.annotation.KeepForSdk;
|
|
import com.google.android.gms.common.internal.ShowFirstParty;
|
|
import com.google.android.gms.internal.measurement.zzdn;
|
|
import com.google.android.gms.measurement.internal.zziu;
|
|
import com.google.android.gms.measurement.internal.zziv;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
@ShowFirstParty
|
|
@KeepForSdk
|
|
/* loaded from: classes3.dex */
|
|
public class AppMeasurementSdk {
|
|
private final zzdn zza;
|
|
|
|
@KeepForSdk
|
|
public static final class ConditionalUserProperty {
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String ACTIVE = "active";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String CREATION_TIMESTAMP = "creation_timestamp";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String EXPIRED_EVENT_NAME = "expired_event_name";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String EXPIRED_EVENT_PARAMS = "expired_event_params";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String NAME = "name";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String ORIGIN = "origin";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String TIMED_OUT_EVENT_NAME = "timed_out_event_name";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String TIMED_OUT_EVENT_PARAMS = "timed_out_event_params";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String TIME_TO_LIVE = "time_to_live";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String TRIGGERED_EVENT_NAME = "triggered_event_name";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String TRIGGERED_EVENT_PARAMS = "triggered_event_params";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String TRIGGERED_TIMESTAMP = "triggered_timestamp";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String TRIGGER_EVENT_NAME = "trigger_event_name";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String TRIGGER_TIMEOUT = "trigger_timeout";
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String VALUE = "value";
|
|
|
|
private ConditionalUserProperty() {
|
|
}
|
|
}
|
|
|
|
@ShowFirstParty
|
|
@KeepForSdk
|
|
public interface EventInterceptor extends zziv {
|
|
@Override // com.google.android.gms.measurement.internal.zziv
|
|
@ShowFirstParty
|
|
@KeepForSdk
|
|
@WorkerThread
|
|
void interceptEvent(@NonNull String str, @NonNull String str2, @NonNull Bundle bundle, long j);
|
|
}
|
|
|
|
@ShowFirstParty
|
|
@KeepForSdk
|
|
public interface OnEventListener extends zziu {
|
|
@Override // com.google.android.gms.measurement.internal.zziu
|
|
@ShowFirstParty
|
|
@KeepForSdk
|
|
@WorkerThread
|
|
void onEvent(@NonNull String str, @NonNull String str2, @NonNull Bundle bundle, long j);
|
|
}
|
|
|
|
@KeepForSdk
|
|
@WorkerThread
|
|
public int getMaxUserProperties(@NonNull @Size(min = 1) String str) {
|
|
return this.zza.zza(str);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public long generateEventId() {
|
|
return this.zza.zza();
|
|
}
|
|
|
|
@Nullable
|
|
@KeepForSdk
|
|
public Bundle performActionWithResponse(@NonNull Bundle bundle) {
|
|
return this.zza.zza(bundle, true);
|
|
}
|
|
|
|
@NonNull
|
|
@RequiresPermission(allOf = {"android.permission.INTERNET", "android.permission.ACCESS_NETWORK_STATE", "android.permission.WAKE_LOCK"})
|
|
@ShowFirstParty
|
|
@KeepForSdk
|
|
public static AppMeasurementSdk getInstance(@NonNull Context context) {
|
|
return zzdn.zza(context).zzb();
|
|
}
|
|
|
|
@NonNull
|
|
@RequiresPermission(allOf = {"android.permission.INTERNET", "android.permission.ACCESS_NETWORK_STATE", "android.permission.WAKE_LOCK"})
|
|
@KeepForSdk
|
|
public static AppMeasurementSdk getInstance(@NonNull Context context, @NonNull String str, @NonNull String str2, @Nullable String str3, @NonNull Bundle bundle) {
|
|
return zzdn.zza(context, str, str2, str3, bundle).zzb();
|
|
}
|
|
|
|
@Nullable
|
|
@KeepForSdk
|
|
public String getAppIdOrigin() {
|
|
return this.zza.zzd();
|
|
}
|
|
|
|
@Nullable
|
|
@KeepForSdk
|
|
public String getAppInstanceId() {
|
|
return this.zza.zzf();
|
|
}
|
|
|
|
@Nullable
|
|
@KeepForSdk
|
|
public String getCurrentScreenClass() {
|
|
return this.zza.zzg();
|
|
}
|
|
|
|
@Nullable
|
|
@KeepForSdk
|
|
public String getCurrentScreenName() {
|
|
return this.zza.zzh();
|
|
}
|
|
|
|
@Nullable
|
|
@KeepForSdk
|
|
public String getGmpAppId() {
|
|
return this.zza.zzi();
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
@WorkerThread
|
|
public List<Bundle> getConditionalUserProperties(@Nullable String str, @Nullable @Size(max = 23, min = 1) String str2) {
|
|
return this.zza.zza(str, str2);
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
@WorkerThread
|
|
public Map<String, Object> getUserProperties(@Nullable String str, @Nullable @Size(max = 24, min = 1) String str2, boolean z) {
|
|
return this.zza.zza(str, str2, z);
|
|
}
|
|
|
|
public AppMeasurementSdk(zzdn zzdnVar) {
|
|
this.zza = zzdnVar;
|
|
}
|
|
|
|
@KeepForSdk
|
|
public void beginAdUnitExposure(@NonNull @Size(min = 1) String str) {
|
|
this.zza.zzb(str);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public void clearConditionalUserProperty(@NonNull @Size(max = 24, min = 1) String str, @Nullable String str2, @Nullable Bundle bundle) {
|
|
this.zza.zza(str, str2, bundle);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public void endAdUnitExposure(@NonNull @Size(min = 1) String str) {
|
|
this.zza.zzc(str);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public void logEvent(@NonNull String str, @NonNull String str2, @Nullable Bundle bundle) {
|
|
this.zza.zzb(str, str2, bundle);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public void logEventNoInterceptor(@NonNull String str, @NonNull String str2, @Nullable Bundle bundle, long j) {
|
|
this.zza.zza(str, str2, bundle, j);
|
|
}
|
|
|
|
@Nullable
|
|
@KeepForSdk
|
|
public void performAction(@NonNull Bundle bundle) {
|
|
this.zza.zza(bundle, false);
|
|
}
|
|
|
|
@ShowFirstParty
|
|
@KeepForSdk
|
|
public void registerOnMeasurementEventListener(@NonNull OnEventListener onEventListener) {
|
|
this.zza.zza(onEventListener);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public void setConditionalUserProperty(@NonNull Bundle bundle) {
|
|
this.zza.zza(bundle);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public void setConsent(@NonNull Bundle bundle) {
|
|
this.zza.zzb(bundle);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public void setCurrentScreen(@NonNull Activity activity, @Nullable @Size(max = 36, min = 1) String str, @Nullable @Size(max = 36, min = 1) String str2) {
|
|
this.zza.zza(activity, str, str2);
|
|
}
|
|
|
|
public final void zza(boolean z) {
|
|
this.zza.zza(z);
|
|
}
|
|
|
|
@ShowFirstParty
|
|
@KeepForSdk
|
|
@WorkerThread
|
|
public void setEventInterceptor(@NonNull EventInterceptor eventInterceptor) {
|
|
this.zza.zza(eventInterceptor);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public void setMeasurementEnabled(@Nullable Boolean bool) {
|
|
this.zza.zza(bool);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public void setMeasurementEnabled(boolean z) {
|
|
this.zza.zza(Boolean.valueOf(z));
|
|
}
|
|
|
|
@KeepForSdk
|
|
public void setUserProperty(@NonNull String str, @NonNull String str2, @NonNull Object obj) {
|
|
this.zza.zza(str, str2, obj, true);
|
|
}
|
|
|
|
@ShowFirstParty
|
|
@KeepForSdk
|
|
public void unregisterOnMeasurementEventListener(@NonNull OnEventListener onEventListener) {
|
|
this.zza.zzb(onEventListener);
|
|
}
|
|
}
|