

package com.android.inputmethod.compat;

import android.view.accessibility.AccessibilityManager;

import java.lang.reflect.Method;

public class AccessibilityManagerCompatWrapper {
    private static final Method METHOD_isTouchExplorationEnabled = CompatUtils.getMethod(
            AccessibilityManager.class, "isTouchExplorationEnabled");

    private final AccessibilityManager mManager;

    public AccessibilityManagerCompatWrapper(AccessibilityManager manager) {
        mManager = manager;
    }

    public boolean isTouchExplorationEnabled() {
        return (Boolean) CompatUtils.invoke(mManager, false, METHOD_isTouchExplorationEnabled);
    }
}
