How to know if Android TalkBack is active?

前端 未结 8 2168
南旧
南旧 2020-12-02 15:23

I\'m developing an application that uses TalkBack to guide people through it. However, in those situations I want to have some subtile differences in the layout of the appli

8条回答
  •  不知归路
    2020-12-02 16:09

        AccessibilityManager am = (AccessibilityManager) context.getSystemService(Context.ACCESSIBILITY_SERVICE);
        if (am != null && am.isEnabled()) {
            List serviceInfoList = am.getEnabledAccessibilityServiceList(AccessibilityServiceInfo.FEEDBACK_SPOKEN);
            if (!serviceInfoList.isEmpty())
                return true;
        }
        return false;
    

提交回复
热议问题