The users cursor position sadly are not available currently to robots
(on tests with DOCUMENT_CHANGED) - only a selection start/end show up
as an annotation and the users cursor position can be anywhere.

I ran this quick test again there, on both the sandbox and preview -
and no annotations show for cursor position.  If someone has managed
to get the actual caret position of a user (and on what event) please
let us know.

if (tempEventType==EventType.DOCUMENT_CHANGED) {
        Blip tempBlip = tempEvent.getBlip();
        StringBuilder tempMessage = new StringBuilder();
        TextView tempTextView = tempBlip.getDocument();
        List<Annotation> tempAnnotations = tempTextView.getAnnotations();
        tempMessage.append("\nTotal annotations: "+tempAnnotations.size()
+"\n");
        for (Annotation tempAnnotation : tempAnnotations) {
                tempMessage.append("\tAnnotation: "+tempAnnotation.getName()+"
value="+tempAnnotation.getValue()+" range="+tempAnnotation.getRange
().getStart()+" "+tempAnnotation.getRange().getEnd()+"\n");
        }
        LOG.warning(tempMessage.toString());
}


On Dec 2, 11:42 pm, qMax <[email protected]> wrote:
> There also exist annotations denoting users cursors and selections,
> these are mentioned in "conversation manifest" document.
>
> I wonder if a robot _set_ such annotations - will it change cursor
> position/selection?
>
> On 2 дек, 09:33, "pamela (Google Employee)" <[email protected]>
> wrote:
>
> > Just posted a new FAQ about supported annotations:
>
> >http://wave-api-faq.appspot.com/#annotations
>
> > Comments/suggestions welcome.
>
> > - pamela
>
>

--

You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.


Reply via email to