VersionFilter

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

Constructors

VersionFilter

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

Constructs the proper filter.

Parameters

NameTypeDescription
manufacturerStringnullable manufacturer or a null value
minimumAPIVersionintminimal API version

Properties

manufacturer (String)

The manufacturer's identifier.

minimumAPIVersion (int)

The minimal Android API Version.

Methods

mustFilter

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

Checks if a specific filter is applied.

Parameters

NameTypeDescription
manufacturerStringnon null manufacturer of the currently used device
systemAPIVersionintthe version of the currently used operating system

Returns: boolean - returns true if the filter is applied, an unmet value informs that a filter has not been applied.