导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - StyleInterfaceExtensionKt.java 源代码

正在查看: Perplexity v2.48.1 应用的 StyleInterfaceExtensionKt.java JAVA 源代码文件

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


package com.mapbox.maps.extension.localization;

import com.mapbox.maps.MapboxStyleManager;
import com.mapbox.maps.Style;
import java.util.List;
import java.util.Locale;
import kotlin.Metadata;
import kotlin.jvm.JvmOverloads;
import kotlin.jvm.internal.Intrinsics;

@Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0000\u001a&\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00042\u0010\b\u0002\u0010\u0005\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u0006H\u0007¨\u0006\b"}, d2 = {"localizeLabels", "", "Lcom/mapbox/maps/MapboxStyleManager;", "locale", "Ljava/util/Locale;", "layerIds", "", "", "extension-localization_release"}, k = 2, mv = {1, 7, 1}, xi = 48)
public final class StyleInterfaceExtensionKt {
    @JvmOverloads
    public static final void localizeLabels(MapboxStyleManager mapboxStyleManager, Locale locale) {
        Intrinsics.h(mapboxStyleManager, "<this>");
        Intrinsics.h(locale, "locale");
        localizeLabels$default(mapboxStyleManager, locale, null, 2, null);
    }

    public static void localizeLabels$default(MapboxStyleManager mapboxStyleManager, Locale locale, List list, int i, Object obj) {
        if ((i & 2) != 0) {
            list = null;
        }
        localizeLabels(mapboxStyleManager, locale, list);
    }

    @JvmOverloads
    public static final void localizeLabels(MapboxStyleManager mapboxStyleManager, Locale locale, List<String> list) {
        Intrinsics.h(mapboxStyleManager, "<this>");
        Intrinsics.h(locale, "locale");
        if (Intrinsics.c(mapboxStyleManager.getStyleURI(), Style.STANDARD)) {
            throw new RuntimeException("Mapbox Standard style does not support client-side runtime localization. Consider using Mapbox internationalization capability instead: https://www.mapbox.com/blog/maps-internationalization-34-languages");
        }
        LocalizationKt.setMapLanguage(locale, mapboxStyleManager, list);
    }
}