VersionFilter

The VersionFilter model represents a blacklist system management represented by the VersionFilter constructor. It is based on:

The mustFilter method informs whether the filter is applied.

Available in the package com.voxeet.sdk.push.center.management.VersionFilter.

Constructors

VersionFilter

VersionFilter(@Nullable manufacturer: String, minimumAPIVersion: int)

Constructs the filter.

Parameters

NameTypeDescription
manufacturerStringnullable The manufacturer or a null value.
minimumAPIVersionintThe minimum API version.

Properties

manufacturer (String)

The manufacturer's identifier. The null value indicates all manufacturers.


minimumAPIVersion (int)

The earliest Android API version that should be impacted by the blacklist filers. By default, the filters set a black screen for full-screen notifications on Android 10.

Methods

mustFilter

mustFilter(@NonNull manufacturer: String, systemAPIVersion: int): boolean

Checks if a specific filter is applied.

Parameters

NameTypeDescription
manufacturerStringnon null The manufacturer of the currently used device.
systemAPIVersionintThe version of the currently used operating system.

Returns: boolean - Returns true if the filter is applied.


Did this page help you?