# Print output for @column tags ?>
public
class
VuzixBubbleDelegate
extends View.AccessibilityDelegate
java.lang.Object | ||
↳ | android.view.View.AccessibilityDelegate | |
↳ | com.vuzix.sdk.speechrecognitionservice.VuzixBubbleDelegate |
VuzixBubbleDelegate is used to allow an application developer to specify where they would like to location of the numbered speech bubbles to be when voice is active.
Bubbles can be places in any of the 9 pre-defined location, or using a raw offset value
This is an example of customizing the bubble to be placed in the upper right corner:
myButton.setAccessibilityDelegate(new VuzixBubbleDelegate(Alignment.ALIGN_TOP_END));
Nested classes | |
---|---|
enum |
VuzixBubbleDelegate.Alignment
|
Public constructors | |
---|---|
VuzixBubbleDelegate(VuzixBubbleDelegate.Alignment alignment)
Construct a VuzixBubbleDelegate and align to one of the pre-defined alignment values |
|
VuzixBubbleDelegate(int x, int y)
Construct a VuzixBubbleDelegate using a raw offset. |
Public methods | |
---|---|
void
|
onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo info)
This method is called by the framework and should not be called or overridden in your code. |
public VuzixBubbleDelegate (VuzixBubbleDelegate.Alignment alignment)
Construct a VuzixBubbleDelegate and align to one of the pre-defined alignment values
Parameters | |
---|---|
alignment |
VuzixBubbleDelegate.Alignment |
public VuzixBubbleDelegate (int x, int y)
Construct a VuzixBubbleDelegate using a raw offset. The offset values are relative to the upper left corner of the view the bubble is attached to.
Parameters | |
---|---|
x |
int |
y |
int |
public void onInitializeAccessibilityNodeInfo (View host, AccessibilityNodeInfo info)
This method is called by the framework and should not be called or overridden in your code.
Parameters | |
---|---|
host |
View |
info |
AccessibilityNodeInfo |