# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Fields | Methods | Inherited Methods

# CaptioningManager.CaptionStyle

`public static final class CaptioningManager.CaptionStyle`
`extends Object` ``

java.lang.Object
↳ | android.view.accessibility.CaptioningManager.CaptionStyle

Specifies visual properties for video captions, including foreground and background colors, edge properties, and typeface.

## Summary

### Constants
`int` | `EDGE_TYPE_DEPRESSED` Edge type value specifying depressed bevel character edges.
`int` | `EDGE_TYPE_DROP_SHADOW` Edge type value specifying drop-shadowed character edges.
`int` | `EDGE_TYPE_NONE` Edge type value specifying no character edges.
`int` | `EDGE_TYPE_OUTLINE` Edge type value specifying uniformly outlined character edges.
`int` | `EDGE_TYPE_RAISED` Edge type value specifying raised bevel character edges.
`int` | `EDGE_TYPE_UNSPECIFIED` Unspecified edge type value.

### Fields
`public final int` | `backgroundColor` The preferred background color for video captions.
`public final int` | `edgeColor` The preferred edge color for video captions, if using an edge type other than `EDGE_TYPE_NONE`.
`public final int` | `edgeType` The preferred edge type for video captions, one of: `EDGE_TYPE_UNSPECIFIED` `EDGE_TYPE_NONE` `EDGE_TYPE_OUTLINE` `EDGE_TYPE_DROP_SHADOW` `EDGE_TYPE_RAISED` `EDGE_TYPE_DEPRESSED`
`public final int` | `foregroundColor` The preferred foreground color for video captions.
`public final int` | `windowColor` The preferred window color for video captions.

### Public methods
`Typeface` | `getTypeface()`
`boolean` | `hasBackgroundColor()`
`boolean` | `hasEdgeColor()`
`boolean` | `hasEdgeType()`
`boolean` | `hasForegroundColor()`
`boolean` | `hasWindowColor()`

### 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

### EDGE_TYPE_DEPRESSED

    public static final int EDGE_TYPE_DEPRESSED

Edge type value specifying depressed bevel character edges.

Constant Value: 4 (0x00000004)

### EDGE_TYPE_DROP_SHADOW

    public static final int EDGE_TYPE_DROP_SHADOW

Edge type value specifying drop-shadowed character edges.

Constant Value: 2 (0x00000002)

### EDGE_TYPE_NONE

    public static final int EDGE_TYPE_NONE

Edge type value specifying no character edges.

Constant Value: 0 (0x00000000)

### EDGE_TYPE_OUTLINE

    public static final int EDGE_TYPE_OUTLINE

Edge type value specifying uniformly outlined character edges.

Constant Value: 1 (0x00000001)

### EDGE_TYPE_RAISED

    public static final int EDGE_TYPE_RAISED

Edge type value specifying raised bevel character edges.

Constant Value: 3 (0x00000003)

### EDGE_TYPE_UNSPECIFIED

    public static final int EDGE_TYPE_UNSPECIFIED

Unspecified edge type value.

Constant Value: -1 (0xffffffff)

## Fields

### backgroundColor

    public final int backgroundColor

The preferred background color for video captions.

### edgeColor

    public final int edgeColor

The preferred edge color for video captions, if using an edge type other than `EDGE_TYPE_NONE`.

### edgeType

    public final int edgeType

The preferred edge type for video captions, one of:

- `EDGE_TYPE_UNSPECIFIED`
- `EDGE_TYPE_NONE`
- `EDGE_TYPE_OUTLINE`
- `EDGE_TYPE_DROP_SHADOW`
- `EDGE_TYPE_RAISED`
- `EDGE_TYPE_DEPRESSED`

### foregroundColor

    public final int foregroundColor

The preferred foreground color for video captions.

### windowColor

    public final int windowColor

The preferred window color for video captions.

## Public methods

### getTypeface

    public Typeface getTypeface ()

Returns
`Typeface` | the preferred `Typeface` for video captions, or null if not specified

### hasBackgroundColor

    public boolean hasBackgroundColor ()

Returns
`boolean` | `true` if the user has specified a background color that should override the application default, `false` otherwise

### hasEdgeColor

    public boolean hasEdgeColor ()

Returns
`boolean` | `true` if the user has specified an edge color that should override the application default, `false` otherwise

### hasEdgeType

    public boolean hasEdgeType ()

Returns
`boolean` | `true` if the user has specified an edge type that should override the application default, `false` otherwise

### hasForegroundColor

    public boolean hasForegroundColor ()

Returns
`boolean` | `true` if the user has specified a foreground color that should override the application default, `false` otherwise

### hasWindowColor

    public boolean hasWindowColor ()

Returns
`boolean` | `true` if the user has specified a window color that should override the application default, `false` otherwise

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