# Print output for @column tags ?> VuzixBubbleDelegate | Android Developers

Most visited

Recently visited

VuzixBubbleDelegate

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));
 

Summary

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 constructors

VuzixBubbleDelegate

public VuzixBubbleDelegate (VuzixBubbleDelegate.Alignment alignment)

Construct a VuzixBubbleDelegate and align to one of the pre-defined alignment values

Parameters
alignment VuzixBubbleDelegate.Alignment

VuzixBubbleDelegate

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 methods

onInitializeAccessibilityNodeInfo

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

See also: