Skip to main content

How to combine the Makeup API and Beauty API features

As you can notice, both the Makeup API and Beauty API are using the same Face Filter. As a result, it is possible to combine their features in your application.

You can consume the effect API in several ways.

Via effect's config.js#

Add to the bottom of the Makeup/config.js file:

/* Feel free to add your custom code below */
Lips.matt("0.85 0.23 0.2 0.8")

From application#

In your app code use callJsMethod from Banuba SDK:

// Effect mCurrentEffect = ...
// set lips matt color
mCurrentEffect.callJSMethod("Lips.matt", "0.85 0.23 0.2 0.8");
// reset lips color
mCurrentEffect.callJSMethod("Lips.clear", "");

Combine features#

To combine the Makeup API features, call the desired methods in your app or in config.js as shown above.

Example:

/* Feel free to add your custom code below */
Lips.matt("0.85 0.23 0.2 0.8")
Eyeshadow.color("0.6 0.5 1 0.6")
Contour.color("0.3 0.1 0.1 0.2")

Preview

Drag
Last updated on