导航菜单

页面标题

页面副标题

Kickcash v16.1 - Clarity.java 源代码

正在查看: Kickcash v16.1 应用的 Clarity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.microsoft.clarity;

import android.app.Activity;
import android.content.Context;
import android.net.Uri;
import android.view.View;
import com.microsoft.clarity.fn.g;
import com.microsoft.clarity.fn.i;
import com.microsoft.clarity.fn.j;
import com.microsoft.clarity.fn.k;
import com.microsoft.clarity.kn.m;
import com.microsoft.clarity.sn.e;
import com.microsoft.clarity.sn.h;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;

public class Clarity {
    public static String getCurrentSessionId() {
        m mVar = g.a;
        if (mVar == null) {
            h.i("Clarity has not started yet.");
            return null;
        }
        String b = mVar.Y.b();
        if (b != null) {
            return b;
        }
        h.i("No Clarity session has started yet.");
        return b;
    }

    public static String getCurrentSessionUrl() {
        String b;
        String c;
        m mVar = g.a;
        if (mVar == null) {
            h.i("Clarity has not started yet.");
            b = null;
        } else {
            b = mVar.Y.b();
            if (b == null) {
                h.i("No Clarity session has started yet.");
            }
        }
        if (b == null) {
            return null;
        }
        m mVar2 = g.a;
        if (mVar2 == null) {
            h.i("Clarity has not started yet.");
            c = null;
        } else {
            c = mVar2.Y.c();
            if (c == null) {
                h.i("No Clarity session has started yet.");
            }
        }
        if (c == null) {
            return null;
        }
        ClarityConfig clarityConfig = g.d;
        String projectId = clarityConfig != null ? clarityConfig.getProjectId() : null;
        if (projectId == null) {
            h.i("Clarity has not started yet.");
        }
        if (projectId == null) {
            return null;
        }
        return Uri.parse("https://clarity.microsoft.com/player/").buildUpon().appendPath(projectId).appendPath(c).appendPath(b).build().toString();
    }

    public static Boolean initialize(Activity activity, ClarityConfig clarityConfig) {
        if (activity == null || clarityConfig == null) {
            h.g("activity and config parameters cannot be null.");
            return Boolean.FALSE;
        }
        m mVar = g.a;
        return Boolean.valueOf(g.j(activity, activity.getApplicationContext(), clarityConfig));
    }

    public static Boolean isPaused() {
        boolean z;
        synchronized (g.m) {
            z = g.l;
        }
        return Boolean.valueOf(z);
    }

    public static Boolean maskView(View view) {
        if (view != null) {
            return Boolean.valueOf(g.l(view));
        }
        h.g("View cannot be null.");
        return Boolean.FALSE;
    }

    public static Boolean pause() {
        m mVar = g.a;
        return Boolean.valueOf(e.b(com.microsoft.clarity.fn.h.X, i.X, null, 26));
    }

    public static Boolean resume() {
        m mVar = g.a;
        return Boolean.valueOf(e.b(j.X, k.X, null, 26));
    }

    public static Boolean setCurrentScreenName(String str) {
        return Boolean.valueOf(g.v(str));
    }

    public static Boolean setCustomSessionId(String str) {
        if (str != null) {
            return Boolean.valueOf(g.x(str));
        }
        h.g("Custom session id cannot be null.");
        return Boolean.FALSE;
    }

    public static boolean setCustomTag(String str, String str2) {
        if (str != null && str2 != null) {
            return g.m(str, str2);
        }
        h.g("Custom tag key and value cannot be null.");
        return false;
    }

    public static Boolean setCustomUserId(String str) {
        if (str != null) {
            return Boolean.valueOf(g.z(str));
        }
        h.g("Custom user id cannot be null.");
        return Boolean.FALSE;
    }

    public static Boolean setOnNewSessionStartedCallback(Function1<String, Unit> function1) {
        if (function1 != null) {
            return Boolean.valueOf(g.r(function1));
        }
        h.g("Callback function cannot be null.");
        return Boolean.FALSE;
    }

    public static Boolean unmaskView(View view) {
        if (view != null) {
            return Boolean.valueOf(g.q(view));
        }
        h.g("View cannot be null.");
        return Boolean.FALSE;
    }

    public static Boolean initialize(Context context, ClarityConfig clarityConfig) {
        if (context != null && clarityConfig != null) {
            return Boolean.valueOf(g.j(null, context, clarityConfig));
        }
        h.g("context and config parameters cannot be null.");
        return Boolean.FALSE;
    }
}