Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Fields](https://developer.android.com/reference/android/widget/RemoteViews.RemoteViewOutlineProvider#inhfields) \| [Ctors](https://developer.android.com/reference/android/widget/RemoteViews.RemoteViewOutlineProvider#pubctors) \| [Methods](https://developer.android.com/reference/android/widget/RemoteViews.RemoteViewOutlineProvider#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/widget/RemoteViews.RemoteViewOutlineProvider#inhmethods)

# RemoteViews.RemoteViewOutlineProvider

*** ** * ** ***


`
public
static
final

class
RemoteViews.RemoteViewOutlineProvider
`


`


`

`

extends https://developer.android.com/reference/android/view/ViewOutlineProvider


`

`


`

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.view.ViewOutlineProvider](https://developer.android.com/reference/android/view/ViewOutlineProvider) ||
|   | ↳ | android.widget.RemoteViews.RemoteViewOutlineProvider |

<br />

*** ** * ** ***

OutlineProvider for a view with a radius set by
`https://developer.android.com/reference/android/widget/RemoteViews#setViewOutlinePreferredRadius(int,%20float,%20int)`.

## Summary

| ### Inherited fields |
|---|
| From class `https://developer.android.com/reference/android/view/ViewOutlineProvider` |---|---| | ` public static final https://developer.android.com/reference/android/view/ViewOutlineProvider` | `https://developer.android.com/reference/android/view/ViewOutlineProvider#BACKGROUND` Default outline provider for Views, which queries the Outline from the View's background, or generates a 0 alpha, rectangular Outline the size of the View if a background isn't present. | | ` public static final https://developer.android.com/reference/android/view/ViewOutlineProvider` | `https://developer.android.com/reference/android/view/ViewOutlineProvider#BOUNDS` Maintains the outline of the View to match its rectangular bounds, at `1.0f` alpha. | | ` public static final https://developer.android.com/reference/android/view/ViewOutlineProvider` | `https://developer.android.com/reference/android/view/ViewOutlineProvider#PADDED_BOUNDS` Maintains the outline of the View to match its rectangular padded bounds, at `1.0f` alpha. | |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/widget/RemoteViews.RemoteViewOutlineProvider#RemoteViewOutlineProvider(float)(float radius) ` |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/widget/RemoteViews.RemoteViewOutlineProvider#getOutline(android.view.View,%20android.graphics.Outline)(https://developer.android.com/reference/android/view/View view, https://developer.android.com/reference/android/graphics/Outline outline) ` Called to get the provider to populate the Outline. |
| ` float` | ` https://developer.android.com/reference/android/widget/RemoteViews.RemoteViewOutlineProvider#getRadius()() ` Returns the corner radius used when providing the view outline. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/android/view/ViewOutlineProvider ` |---|---| | ` abstract void` | ` https://developer.android.com/reference/android/view/ViewOutlineProvider#getOutline(android.view.View,%20android.graphics.Outline)(https://developer.android.com/reference/android/view/View view, https://developer.android.com/reference/android/graphics/Outline outline) ` Called to get the provider to populate the Outline. | ||
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public constructors

### RemoteViewOutlineProvider

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public RemoteViewOutlineProvider (float radius)
```

<br />

<br />

| Parameters ||
|---|---|
| `radius` | `float` <br /> |

## Public methods

### getOutline

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void getOutline (View view, 
                Outline outline)
```

Called to get the provider to populate the Outline.

This method will be called by a View when its owned Drawables are invalidated, when the
View's size changes, or if `https://developer.android.com/reference/android/view/View#invalidateOutline()` is called
explicitly.

The input outline is empty and has an alpha of `1.0f`.

<br />

| Parameters ||
|---|---|
| `view` | `View`: This value cannot be `null`. <br /> |
| `outline` | `Outline`: This value cannot be `null`. <br /> |

### getRadius

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float getRadius ()
```

Returns the corner radius used when providing the view outline.

<br />

| Returns ||
|---|---|
| `float` | <br /> |