Skip to content

Latest commit

 

History

History
230 lines (160 loc) · 4.4 KB

CUSTOMIZATION-DOC.md

File metadata and controls

230 lines (160 loc) · 4.4 KB

Applozic SDK provides various UI settings to customise chat view easily. If you are using ALChatManager.h explained in the earlier section, you can put all your settings in below method.

-(void)ALDefaultChatViewSettings;

If you have your own implementation, you should set UI Customization setting on successfull registration of user.

Below section explains UI settings provided by Applozic SDK.

Chat Bubble

Received Message bubble color

Objective-C

[ALApplozicSettings setColorForReceiveMessages: [UIColor colorWithRed:255.0/255 green:255.0/255 blue:255.0/255 alpha:1]];

Swift

ALApplozicSettings.setColorForReceiveMessages(UIColor(red: 255/255, green: 255/255, blue: 255/255, alpha:1))
Send Message bubble color

Objective-C

[ALApplozicSettings setColorForSendMessages: [UIColor colorWithRed:66.0/255 green:173.0/255 blue:247.0/255 alpha:1]];

Swift

ALApplozicSettings.setColorForSendMessages(UIColor(red: 66.0/255, green: 173.0/255, blue: 247.0/255, alpha:1))

Chat Background

Objective-C

[ALApplozicSettings setChatWallpaperImageName:@"<WALLPAPER NAME>"];

Swift

ALApplozicSettings.setChatWallpaperImageName("<WALLPAPER NAME>")

Chat Screen

Hide/Show profile Image

Objective-C

[ALApplozicSettings setUserProfileHidden: NO];

Swift

ALApplozicSettings.setUserProfileHidden(false)

Hide/Show Refresh Button

Objective-C

[ALApplozicSettings hideRefreshButton: NO];

Swift

ALApplozicSettings.hideRefreshButton(flag)

Chat Title

Objective-C

[ALApplozicSettings setTitleForConversationScreen: @"Recent Chats"];

Swift

ALApplozicSettings.setTitleForConversationScreen("Recent Chats")

Group Messaging

Objective-C

[ALApplozicSettings setGroupOption: YES];

Swift

ALApplozicSettings.setGroupOption(true)

This method is used when group feature is required . It will disable group functionality when set to NO.

Show/Hide Group Exit Button

Objective-C

[ALApplozicSettings setGroupExitOption:YES];

Swift

ALApplozicSettings.setGroupExitOption(true)
Show/Hide Group Member-Add Button (Admin only)

Objective-C

[ALApplozicSettings setGroupMemberAddOption:YES];

Swift

ALApplozicSettings.setGroupMemberAddOption(true)
Show/Hide Group Member-Remove Button (Admin only)

Objective-C

[ALApplozicSettings setGroupMemberRemoveOption:YES];

Swift

ALApplozicSettings.setGroupMemberRemoveOption(true)
Disable GroupInfo (Tap on group Title)

Objective-C

[ALApplozicSettings setGroupInfoDisabled:YES];

Swift

ALApplozicSettings.setGroupInfoDisabled(true)
Disable GroupInfoEdit (Edit group name and image)

Objective-C

[ALApplozicSettings setGroupInfoEditDisabled:YES];

Swift

 ALApplozicSettings.setGroupInfoEditDisabled(true)

Theme Customization

Set Colour for Navigation Bar

Objective-C

[ALApplozicSettings setColorForNavigation: [UIColor colorWithRed:66.0/255 green:173.0/255 blue:247.0/255 alpha:1]];

Swift

ALApplozicSettings.setColorForNavigation(UIColor(red: 66.0/255, green: 173.0/255, blue: 247.0/255, alpha:1))
Set Colour for Navigation Bar Item

Objective-C

[ALApplozicSettings setColorForNavigationItem: [UIColor whiteColor]];

Swift

ALApplozicSettings.setColorForNavigationItem(UIColor.whiteColor())
Hide/Show Tab Bar

Objective-C

[ALUserDefaultsHandler setBottomTabBarHidden: YES];

Swift

ALUserDefaultsHandler.setBottomTabBarHidden(true)
Set Font Face

Objective-C

[ALApplozicSettings setFontaFace: @"Helvetica"];

Swift

ALApplozicSettings.setFontFace("Helvetica")

UI source code

For complete control over UI, you can also download open source chat UI toolkit and change it as per your designs :

https://github.com/AppLozic/Applozic-iOS-SDK

Import Applozic iOS Library into your Xcode project.

Applozic contains the UI related source code, icons, views and other resources which you can customize based on your design needs.

Sample app with integration is available under sampleapp