Windows 8 share on facebook and get response -
i'm trying impletent share mechanism in windows phone 8.1 app. want able share app content , react in application meaning,
- click share
- pick medium
- if picked == facebook , shared -> something
- if picked == somethingelse , shared -> etc..
so far managed make
protected override void onnavigatedto(navigationeventargs e) { this._navigationhelper.onnavigatedto(e); datatransfermanager.getforcurrentview().datarequested += ondatarequested; datatransfermanager.getforcurrentview().targetapplicationchosen += senderontargetapplicationchosen; } private async void ondatarequested(datatransfermanager sender, datarequestedeventargs args) { _facebookpicked = false; var request = args.request; var sharedescription = resourceloader.getforcurrentview().getstring("sharedescription"); var deferral = args.request.getdeferral(); request.data.properties.title = "some title"; request.data.properties.description = "sometext"; deferral.complete(); } private void senderontargetapplicationchosen(datatransfermanager sender, targetapplicationchoseneventargs args) { if (args.applicationname == "facebook") { _facebookpicked = true; } }
what cannot figure out how determined if 1 pressed share button upon picking target app. there event can intercept?
Comments
Post a Comment