Custom Views

Custom Content views are views that the App using the Appstent SDK is expected to provide (See related iOS SDK integration reference here). A Custom view is represented by custom value for the field type. Moreover, the customViewName field should contain the name of the view object the SDK client App is expected to provide.

The following example shows custom view objects references as views for the main tab-bar screens:

{
    "type": "tabbedView",
    "backgroundColor": "#ffffff",
    "alignment": "bottom",
    "tabs": [
        {
            "title": "Featured",
            "icon": {
                "type": "image",
                "source": "star",
                "sourceType": "system"
            },
            "tabContent": {
                "type": "custom",
                "customViewName": "category_home"
            }
        },
        {
            "title": "List",
            "icon": {
                "type": "image",
                "source": "list.bullet",
                "sourceType": "system"
            },
            "tabContent": {
                "type": "custom",
                "customViewName": "landmark_list"
            }
        }
    ]
}

Last updated