HintFilter


class HintFilter : Parcelable
kotlin.Any
   ↳ android.app.personalcontext.hint.HintFilter

Filter for hint refiners and understanders to indicate which hints they want to receive. The filter can be a combination of different criteria, such as the publisher's package or the type of ContextHint. Each parameter can be customized with a number of filter flags. Specifying FILTER_TYPE_ALLOWED limits the returned set to only include the those hints that match the associated filter. Specifying FILTER_TYPE_FILTER_TYPE_REQUIRED means that a hint matching this filter must be present for the set to be returned.

Summary

Nested classes

Builder for a HintFilter.

Constants
static Int

Flag indicating that only hints matching this filter should be included.

static Int

Flag indicating no filter is applied

static Int

Flag indicating that the returned set must include a hint that matches this filter.

Inherited constants
Public methods
Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

MutableSet<Class<Any!>!>

Returns the ContextHint classes within this filter.

MutableSet<Class<Any!>!>
getHintTypes(filter: Int)

Returns the ContextHint classes within this filter.

MutableSet<String!>

Returns the publishing packages checked for within this filter.

MutableSet<String!>
getPackages(filter: Int)

Returns the publishing packages checked for within this filter.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<HintFilter!>

Constants

FILTER_TYPE_ALLOWED

static val FILTER_TYPE_ALLOWED: Int

Flag indicating that only hints matching this filter should be included.

Value: 1

FILTER_TYPE_NONE

static val FILTER_TYPE_NONE: Int

Flag indicating no filter is applied

Value: 0

FILTER_TYPE_REQUIRED

static val FILTER_TYPE_REQUIRED: Int

Flag indicating that the returned set must include a hint that matches this filter.

Value: 2

Public methods

describeContents

fun describeContents(): Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

getHintTypes

fun getHintTypes(): MutableSet<Class<Any!>!>

Returns the ContextHint classes within this filter.

Return
MutableSet<Class<Any!>!> A set of classes in the filter that match the supplied filter type flags.

getHintTypes

fun getHintTypes(filter: Int): MutableSet<Class<Any!>!>

Returns the ContextHint classes within this filter.

Parameters
filter Int: the android.app.personalcontext.hint.HintFilter.FilterType flags that should be set on the filters for returned ContextHint classes.
Value is either 0 or a combination of the following:
Return
MutableSet<Class<Any!>!> A set of classes in the filter that match the supplied filter type flags.

getPackages

fun getPackages(): MutableSet<String!>

Returns the publishing packages checked for within this filter.

Return
MutableSet<String!> A set of package names in the filter.

getPackages

fun getPackages(filter: Int): MutableSet<String!>

Returns the publishing packages checked for within this filter.

Parameters
filter Int: the android.app.personalcontext.hint.HintFilter.FilterType flags that should be set on the matching filters.
Value is either 0 or a combination of the following:
Return
MutableSet<String!> A set of package names in the filter that match the supplied filter type flags.

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: The Parcel in which the object should be written.
This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:

Properties

CREATOR

static val CREATOR: Parcelable.Creator<HintFilter!>