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
Name | Type | Description |
---|---|---|
manufacturer | String | nullable The manufacturer or a null value. |
minimumAPIVersion | int | The 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
Name | Type | Description |
---|---|---|
manufacturer | String | non null The manufacturer of the currently used device. |
systemAPIVersion | int | The version of the currently used operating system. |
Returns: boolean - Returns true if the filter is applied.
Updated over 1 year ago