本文整理汇总了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;
}
}
}
示例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();
}