# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Methods | Inherited Methods

# FontsContract.FontFamilyResult

`public static class FontsContract.FontFamilyResult`
`extends Object` ``

java.lang.Object
↳ | android.provider.FontsContract.FontFamilyResult

Object returned from `FontsContract.fetchFonts(Context, CancellationSignal, FontRequest)`.

## Summary

### Constants
`int` | `STATUS_OK` Constant represents that the font was successfully retrieved.
`int` | `STATUS_REJECTED` Constant represents that the fetching font data was rejected by system.
`int` | `STATUS_UNEXPECTED_DATA_PROVIDED` Constant represents that the provider returns unexpected data.
`int` | `STATUS_WRONG_CERTIFICATES` Constant represents that the given certificate was not matched with the provider's signature.

### Public methods
`FontInfo[]` | `getFonts()`
`int` | `getStatusCode()`

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### STATUS_OK

    public static final int STATUS_OK

Constant represents that the font was successfully retrieved. Note that when this value is set and `getFonts()` returns an empty array, it means there were no fonts matching the given query.

Constant Value: 0 (0x00000000)

### STATUS_REJECTED

    public static final int STATUS_REJECTED

Constant represents that the fetching font data was rejected by system. This happens if the passed context is restricted.

Constant Value: 3 (0x00000003)

### STATUS_UNEXPECTED_DATA_PROVIDED

    public static final int STATUS_UNEXPECTED_DATA_PROVIDED

Constant represents that the provider returns unexpected data. `getFonts()` returns null if this status was set. For example, this value is set when the font provider gives invalid format of variation settings.

Constant Value: 2 (0x00000002)

### STATUS_WRONG_CERTIFICATES

    public static final int STATUS_WRONG_CERTIFICATES

Constant represents that the given certificate was not matched with the provider's signature. `getFonts()` returns null if this status was set.

Constant Value: 1 (0x00000001)

## Public methods

### getFonts

    public FontInfo[] getFonts ()

Returns
`FontInfo[]` | This value cannot be `null`.

### getStatusCode

    public int getStatusCode ()

Returns
`int` | Value is `STATUS_OK`, `STATUS_WRONG_CERTIFICATES`, or `STATUS_UNEXPECTED_DATA_PROVIDED`

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*