Nys
Nys

Reputation: 556

Get information from a remoteView?

I am been trying to figure out how to get information from a remoteView. There sees to be plenty of set functions but no get functions.

More precisely I would like to get the size of my remote view like this question but for remoteViews.

Upvotes: 4

Views: 2154

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007296

This is not possible, sorry. RemoteViews is a data structure, designed to be passed to and used by another process.

More precisely I would like to get the size of my remote view like this question but for remoteViews.

RemoteViews does not have a "size", at least in terms of pixels, any more than a String does. The resulting widget tree created by the other process applying the RemoteViews has a size, but only the other process knows about that.

Upvotes: 4

Related Questions