Customizing UI

You can customize UI parts of the antivirus module of Malwarelytics for Android in the AppProtection class initialization through setting ThreatMitigationUIConfig in the AntivirusConfig.Builder instance:

val threatMitigationUIConfig = AntivirusConfig.ThreatMitigationUIConfig.Builder()
    .notificationSmallIcon(R.drawable.my_notification_icon)
    .notificationChannelId("AV-CHANNEL")
    .screenDeleteIcon(R.drawable.custom_delete_icon)
    .screenSettingsIcon(R.drawable.custom_settings_icon)
    .screenTheme(R.style.CustomThreatScreenTheme)
    .customLocalization("cs")
    .build()

val antivirusConfig = AntivirusConfig.Builder()
    // ...
    .setThreatMitigationUIConfig(threatMitigationUIConfig)
    .build()

In the case you configure UI and set it in the builder, the smart protection is automatically started. You do not need to call any methods to trigger scan. The SDK automatically monitors all app updates and display the appropriate UI whenever needed.

Last updated on Apr 18, 2021 (20:42) View product
Search

0.15.x

Malwarelytics for Android