Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/view/SurfaceControlViewHost.LayoutParams#pubctors) \| [Methods](https://developer.android.com/reference/android/view/SurfaceControlViewHost.LayoutParams#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/view/SurfaceControlViewHost.LayoutParams#inhmethods)

# SurfaceControlViewHost.LayoutParams

*** ** * ** ***

` public static class SurfaceControlViewHost.LayoutParams `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.view.SurfaceControlViewHost.LayoutParams |

<br />

*** ** * ** ***

Specifies the layout parameters for a `https://developer.android.com/reference/android/view/View` hosted by a `https://developer.android.com/reference/android/view/SurfaceControlViewHost`. This is a subset of `https://developer.android.com/reference/android/view/WindowManager.LayoutParams` that are applicable for `https://developer.android.com/reference/android/view/View`s hosted by `SurfaceControlViewHost`.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/view/SurfaceControlViewHost.LayoutParams#LayoutParams(int,%20int,%20boolean)(int width, int height, boolean focusable) ` Creates a new set of layout parameters. |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/view/SurfaceControlViewHost.LayoutParams#getHeight()() ` Returns the height, in pixels, of the bounds for the `https://developer.android.com/reference/android/view/View`. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/view/SurfaceControlViewHost.LayoutParams#getTitle()() ` |
| ` int` | ` https://developer.android.com/reference/android/view/SurfaceControlViewHost.LayoutParams#getWidth()() ` Returns the width, in pixels, of the bounds for the `https://developer.android.com/reference/android/view/View`. |
| ` boolean` | ` https://developer.android.com/reference/android/view/SurfaceControlViewHost.LayoutParams#isFocusable()() ` Returns `true` if this `https://developer.android.com/reference/android/view/View` can receive key input focus. |
| ` void` | ` https://developer.android.com/reference/android/view/SurfaceControlViewHost.LayoutParams#setTitle(java.lang.String)(https://developer.android.com/reference/java/lang/String title) ` Sets the title for the SurfaceControlViewHost. |

### Inherited methods

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

### LayoutParams

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

```
public LayoutParams (int width, 
                int height, 
                boolean focusable)
```

Creates a new set of layout parameters. If `focusable` is set to false, this `https://developer.android.com/reference/android/view/View` won't ever get key input focus, so the user can not send key or other button events to it. Those will instead go to the current focused window. If set to true, `https://developer.android.com/reference/android/view/View` is focusable.

<br />

| Parameters ||
|---|---|
| `width` | `int`: The width, in pixels, of the bounds for the `https://developer.android.com/reference/android/view/View`. <br /> |
| `height` | `int`: The height, in pixels, of the bounds for the `https://developer.android.com/reference/android/view/View`. <br /> |
| `focusable` | `boolean`: Whether the `https://developer.android.com/reference/android/view/View` can receive key input focus. <br /> |

## Public methods

### getHeight

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

```
public int getHeight ()
```

Returns the height, in pixels, of the bounds for the `https://developer.android.com/reference/android/view/View`.

<br />

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

### getTitle

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

```
public String getTitle ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The title for the SurfaceControlViewHost. This value cannot be `null`. <br /> |

### getWidth

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

```
public int getWidth ()
```

Returns the width, in pixels, of the bounds for the `https://developer.android.com/reference/android/view/View`.

<br />

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

### isFocusable

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

```
public boolean isFocusable ()
```

Returns `true` if this `https://developer.android.com/reference/android/view/View` can receive key input focus.

<br />

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

### setTitle

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

```
public void setTitle (String title)
```

Sets the title for the SurfaceControlViewHost. This is used for debugging purposes to identify the SurfaceControl in tools.

<br />

| Parameters ||
|---|---|
| `title` | `String`: The title to set. This value cannot be `null`. <br /> |