Bump API Iphone Dev Camp Presentation

2,022 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,022
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
15
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Bump API Iphone Dev Camp Presentation

  1. 1. Bump API<br />Mark Hazlett – iCOG Studios<br />
  2. 2. Connecting<br /> - To connect using the Bump API, you first need an API key from Bump...(http://bu.mp/api). <br /><ul><li>Once you have a bump API key, you can start adding Bump into your apps…</li></ul>#import “Bump.h”<br />Bump *bumpObject = [[Bump alloc] init]; <br />[bumpObjectconfigAPIKey:@"YOUR_API_KEY"];<br />
  3. 3. Configuring Bump<br />[bumpObjectsetDelegate:self];<br />[bumpObjectconfigHistoryMessage:@”Configure History Message”];<br />[bumpObjectconfigActionMessage:@”Configure Action Message"];<br />[bumpObject connect];<br />
  4. 4. Delegate Methods<br /><ul><li>(void) bumpDidConnect;
  5. 5. (void) bumpDidDisconnect:(BumpDisconnectReason)reason;</li></ul>- (void) bumpConnectFailed:(BumpConnectFailedReason)reason;<br />
  6. 6. Sending Data<br />NSData *data;<br />[bumpObjectsend:data];<br />
  7. 7. Receiving Data/Disconnect<br />- (void) bumpDataReceived:(NSData *)chunk;<br />[bumpObject disconnect];<br />
  8. 8. Convenience<br />-(void) configUserName: (NSString *)name;<br />-(NSString *) otherUserName;<br />-(void) connectToDoContactExchange:(BumpContact*) contact;<br />-(void) connectToShareThisApp;<br />- If this method is used, you can bump phones to present the user with an iTunes download link of your app.<br />
  9. 9. Resources<br />Bump API Homepage<br />http://bu.mp/api<br />Bump API Resources<br />http://bu.mp/apiresources<br />Bump Iphone Google Group<br />http://groups.google.com/group/bump-api<br />

×