Effects Android
Effects / Guides / AR masks / Android

Add an AR face mask in Android with Nosmai Effects

Updated August 27, 2026

Download a face-tracked AR mask through Cloud Filters, apply it to a Camera2 preview, and remove it safely.

Prerequisites

Obtain the mask

Select and download a compatible AR mask through Cloud Filters.

Apply it

NosmaiEffects.applyEffect(maskPath, new NosmaiEffects.EffectCallback() {
    @Override public void onSuccess() {
        // Update selected state after success.
    }

    @Override public void onError(String message) {
        Log.e("Nosmai", message);
    }
});

Remove it

NosmaiEffects.removeEffect(maskInfo);

Use the item returned by the Cloud Filter catalog.

Verify it worked

Test face loss, reacquisition, fast movement, glasses, partial occlusion, both cameras, and device rotation.

Common errors

SymptomFix
Callback reports failurePass the successful Cloud Filter download result and verify compatibility
Mask is not selected in UIUpdate selection only from apply success and pipeline state
Frame rate fallsTest the Cloud Filter at 720p and 30 FPS in a Release build

Next steps

References

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved