dicko,
1. Creating a "hidden user preference" on the fly is not possible. in
needs to be done in the Gadget XML
2. Updating a user pref from GWT is done with
PreferencesUtil prefs = PreferencesUtil.nativeInitPrefs();
pref.set("prefName","prefValue");
3. A unique user identifier exists anyhow and is called to VIEWER
http://wiki.opensocial.org/index.php?title=Opensocial_%28v0.8%29
4. Might give you a better answer if I know your Gadget objective
On Jan 14, 8:59 am, dicko <[email protected]> wrote:
> Hi there,
>
> Is anyone able to provide an example of creating and then updating a
> hidden user preference using the GWT?
>
> What I'm trying to do is create a unique identifier for each user
> which can then be saved as a hidden user preference and accessed when
> required by the gadget.
>
> Does this make sense or is there an easier way to do it? (ie. Does
> Google already expose a unique identifier for users through the gadget
> API?)
>
> Thanks!
--
You received this message because you are subscribed to the Google Groups
"iGoogle Developer Forum" 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-Gadgets-API?hl=en.