Common methods | Zoho Creator Help

Common methods

The ZCUISDKUtil of Zoho Creator's Android SDK lets you manage the interface of the components of your Zoho Creator applications. Below are the methods available in it.

Note: Zoho Creator's Mobile SDK is currently a Beta feature. We do not recommend using it for apps in the production stage.

Java - Methods common to the components in your Creator applications

static void openApplication(Activity callingActivity, ZCApplication zcApplication)

Opens the application dashboard, i.e., the screen that lists the components of the specified Zoho Creator application.

Parameters:

callingActivityActivity instance which has to be used to invoke the next activity.
zcApplicationAn object which holds the application info.

 

static void openComponent(Activity callingActivity, ZCApplication zcApplication, ZCComponent zcComponent)

Opens the specified UI component (form, report, or page) of the specified Zoho Creator application.

Parameters:

callingActivityActivity instance which has to be used to invoke the next activity.
zcApplicationAn object that holds the details of the specified application.
zcComponentAn object which holds the details of the component(form, page or report).

 

static Fragment getFragmentViewForComponent(ZCApplication zcApplication, ZCComponent zcComponent)

Returns the specified UI component (form, report, or page) of the specified Zoho Creator application for embedding it in your Android app’s custom screen.

Parameters:

zcApplicationAn object which holds the application info.
zcComponentAn object that holds the details of the specified application.
zcComponentAn object which holds the details of the component(form, page or report).

Returns:

FragmentFragment instance in which you can embed in your activity.

static void logout(Activity activity, boolean skipConfirmDialog,OAuthLogoutListener logoutListener)

Logs out the logged-in user.

Parameters:

callingActivityActivity instance which has to be used to invoke the next activity.
skipConfirmDialogSet value as 'true' if you don't want to show logout confirmation dialog to user, else set value 'false'.
logoutListenerCallback after the logout.

 Note: You'll need extend your activity from ZCBaseActivity to embed the UI component in your Android app.

Kotlin - Methods common to the components in your Creator applications

fun openApplication(callingActivity: Activity, zcApplication: ZCApplication?)

Opens the application dashboard, i.e., the screen that lists the components of the specified Zoho Creator application.

Parameters:

callingActivityThe activity instance that has to be used to invoke the next activity.
zcApplicationAn object that holds the details of the specified application.

 

fun openComponent(callingActivity: Activity, zcApplication: ZCApplication?, zcComponent: ZCComponent)

Opens the specified UI component (form, report, or page) of the specified Zoho Creator application.

Parameters:

activityThe activity instance that has to be used to invoke the next activity.
zcApplicationAn object that holds the details of the specified application.
zcComponentAn object that holds the details of the specified component (form, report, or page) of the specified application.

 

fun getFragmentViewForComponent(zcApplication: ZCApplication, zcComp: ZCComponent): Fragment?

Returns the specified UI component (form, report, or page) of the specified Zoho Creator application for embedding it in your Android app’s custom screen.

Parameters:

zcApplicationAn object that holds the details of the specified application.
zcComponentAn object that holds the details of the specified component (form, report, or page) of the specified application.

Returns:

FragmentThe fragment instance that you can embed in your activity.

 

fun logout(callingActivity: Activity, skipConfirmDialog: Boolean, logoutListener: CreatorOAuthInterface.OAuthLogoutListener)

Logs out the logged-in user.

Parameters:

callingActivityThe activity instance that has to be used to invoke the next activity.
skipConfirmDialogIt controls showing the logout confirmation dialog. Set it to 'true' to skip showing the logout confirmation, else set it to 'false'.
logoutListenerCallback after the logout.

Note: You'll need extend your activity from ZCBaseActivity to embed the UI component in your Android app.

  1. Form related methods
  2. Report related methods
  3. Page related methods
  4. Class Definition (Kotlin)
  5. Class Definition (Java)