IMbeeUI
What is it?
IMbeeUI is a library that implements a rich chat-room view which makes straightforward integrating a chat window to your existing app.
Integration
You only need to add IMbeeCore.framework and IMbeeUI.framework into 'Embedded Binaries'. Then pod install dependencies from Podfile.
Then, you have to configure IMbeeCore with your credentials (checkout example code).
Finally, you only have to present the chat window when you want. See examples section below.
Examples
#import <IMbeeUI/IMbeeUI.h>
#import <IMbeeCore/IMbeeCore.h>
// ...
- (IBAction)presentChatRoom:(id)sender {
Conversation *conv = [[IMbeeCore conversations] conversationWithWoowosId:@"190ab...cd874"];
IMMessageListVC *vc = [IMbeeUI presentConversation:conv
intoView:self.contr
onViewController:self];
[vc setMessageDelegate:self];
}
- (void)buttonPressed:(ButtonContentPart *)button onMessage:(Message *)message
{
if ([button.type isEqualToString:@"url"]) {
NSURL *url = [NSURL URLWithString:button.payload];
if (url)
[[UIApplication sharedApplication] openURL:url];
}
}UI Customization
Customize colors, radius ...
Icons customization
Last updated