当前位置: 首页>>代码示例>>Java>>正文


Java AccessibilityWrapper类代码示例

本文整理汇总了Java中com.csipsimple.utils.accessibility.AccessibilityWrapper的典型用法代码示例。如果您正苦于以下问题:Java AccessibilityWrapper类的具体用法?Java AccessibilityWrapper怎么用?Java AccessibilityWrapper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AccessibilityWrapper类属于com.csipsimple.utils.accessibility包,在下文中一共展示了AccessibilityWrapper类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: InCallAnswerControls

import com.csipsimple.utils.accessibility.AccessibilityWrapper; //导入依赖的package包/类
public InCallAnswerControls(Context context, AttributeSet attrs, int style) {
    super(context, attrs, style);
    
    lockerWidgetType = LOCKER_GLOWPAD;
    setGravity(Gravity.CENTER_VERTICAL);
    if(!isInEditMode()) {
        int unlockerType = SipConfigManager.getPreferenceIntegerValue(context, SipConfigManager.UNLOCKER_TYPE, 0);
        if(unlockerType <= 0 || unlockerType > 3) {
            AccessibilityWrapper accessibilityManager = AccessibilityWrapper.getInstance();
            accessibilityManager.init(getContext());
            if(accessibilityManager.isEnabled()) {
                lockerWidgetType = LOCKER_BUTTON;
            }
            if (Compatibility.isTabletScreen(getContext())
                    && !Compatibility.isCompatible(Build.VERSION_CODES.ICE_CREAM_SANDWICH)) {
                lockerWidgetType = LOCKER_BUTTON;
            }
        }else {
            lockerWidgetType = unlockerType;
        }
        if(lockerWidgetType == LOCKER_GLOWPAD && !Compatibility.isCompatible(Build.VERSION_CODES.ICE_CREAM_SANDWICH)) {
            lockerWidgetType = LOCKER_SLIDINGTAB;
        }
    }
    
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:27,代码来源:InCallAnswerControls.java

示例2: MediaManager

import com.csipsimple.utils.accessibility.AccessibilityWrapper; //导入依赖的package包/类
public MediaManager(SipService aService) {
	service = aService;
	audioManager = (AudioManager) service.getSystemService(Context.AUDIO_SERVICE);
	prefs = service.getSharedPreferences("audio", Context.MODE_PRIVATE);
	//prefs = PreferenceManager.getDefaultSharedPreferences(service);
	accessibilityManager = AccessibilityWrapper.getInstance();
	accessibilityManager.init(service);
	
	ringer = new Ringer(service);
	mediaStateChangedIntent = new Intent(SipManager.ACTION_SIP_MEDIA_CHANGED);
	
	//Try to reset if there were a crash in a call could restore previous settings
	restoreAudioState();
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:15,代码来源:MediaManager.java


注:本文中的com.csipsimple.utils.accessibility.AccessibilityWrapper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。