iOS Hooks

Warning!

The Via.Me API is still in Beta. Infomation on this page is subject to change.

Custom URL Scheme


Via.Me for iPhone supports a number of custom URLs to perform a varity of actions:

URL Action
viame://app Open the via.me app
viame://camera Open the via.me app and show the camera
viame://library Open the via.me app and show the photo library
viame://screenname Open the via.me app and show the specifed users profile
viame://-12345 Open the via.me app and show the specifed content page

Example usage in Objective C:


    NSURL *urlToOpen = [NSURL URLWithString:@"viame://gchahal"];
    if ([[UIApplication sharedApplication] canOpenURL:urlToOpen]) {
      [[UIApplication sharedApplication] openURL:urlToOpen];
    }
  



Send Media to Via.Me

To send media to be posted to Via.Me from your app, you can store the media in a custom pasteboard. Via.me currently supports png, and jpeg data.

-(IBAction)shareOnViaMe:(id)sender {
  UIPasteboard *viamePasteboard = 
    [UIPasteboard pasteboardWithName:@"viame" create:YES];
  viamePasteboard.persistent = YES;
  viamePasteboard.image = YOUR_IMAGE;
  NSURL *url = [NSURL urlWithString:@"viame://post"];
  if ([[UIApplication sharedApplication] canOpenURL:url]) {
    [[UIApplication sharedApplication] openURL:url];
  } 
}