Skip to content

Instantly share code, notes, and snippets.

#LPMobile Android Library Basic Implementation

  1. Copy Branding.settings into the /assets folder in the app. If the app is using Gradle, then the file should be copied into /[app_name]/src/main/assets (create this folder if not present).

###Required changes to AndroidManifest.xml 2. Add the following 3 permissions:

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

#LPMobile Android Library Advanced Implementation

###Connect the delegate The following code is an example of how to connect the delegate inside an activity:

final Activity activity = this;
delegateAPI = new LPMobileDelegateAPIImp(){
    @Override
    public boolean shouldUseCustomActionForChatNotAnswered() {
        return true;
- (void)lookioManager:(LIOLookIOManager *)manager didChangeEnabled:(bool)enabled forSkill:(NSString *)skill forAccount:(NSString *)account
{
//reports button availability
NSString *accountButtonName = [NSString stringWithFormat:@"%@-mobile-button", account];
if (enabled) {
[[LIOLookIOManager sharedLookIOManager] setInvitationShown];
[[LIOLookIOManager sharedLookIOManager] reportEvent:accountButtonName withData:@"1"];
} else {
[[LIOLookIOManager sharedLookIOManager] setInvitationNotShown];
{
"engagement": {
"font": {
"family": ""
},
"logo": {
"image": {
"url": ""
}
},