A wrapper over the YAP developer APIs which manages the cached content inside YahooSmallView.
Example
YahooSession.YAP_VIEWER = "$viewerGuid";
var session:YahooSession = new YahooSession(CONSUMER_KEY, CONSUMER_SECRET);
var content:String = "Hello <yml:name uid=\"viewer\"/> from Flex 3";
session.application.addEventListener(YahooResultEvent.SET_SMALL_VIEW_SUCCESS, handleSetSmallView);
session.application.setSmallView(YahooSession.YAP_VIEWER, content);
function handleSetSmallView(event:YahooResultEvent):void
{
trace(event.type);
// yay!
}
public function ApplicationRequest()
Class constructor.
Creates a new ApplicationRequest object.
public function setSmallView(guid:String, content:String):void
Sets the small view for the user given by the GUID.
Supports only HTML and YML Lite
Parameters
| guid:String — The GUID of the targetted user.
|
| |
| content:String — HTML and YML Lite contents.
|
Event object type: YahooResultEvent
Dispatched when the setSmallView request encounters an error.
Event object type: YahooResultEvent
Dispatched when the setSmallView request executes successfully.