Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#pubctors) \| [Methods](https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#inhmethods)

# Script.LaunchOptions

*** ** * ** ***

` public static final class Script.LaunchOptions `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.renderscript.Script.LaunchOptions |

<br />

*** ** * ** ***

Class for specifying the specifics about how a kernel will be launched. This class can specify a potential range of cells on which to run a kernel. If no set is called for a dimension then this class will have no impact on that dimension when the kernel is executed. The forEach kernel launch will operate over the intersection of the dimensions. Example: LaunchOptions with setX(5, 15) Allocation with dimension X=10, Y=10 The resulting forEach run would execute over: x = 5 to 9 (inclusive) and y = 0 to 9 (inclusive).

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#LaunchOptions()() ` |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#getXEnd()() ` Returns the current X end |
| ` int` | ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#getXStart()() ` Returns the current X start |
| ` int` | ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#getYEnd()() ` Returns the current Y end |
| ` int` | ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#getYStart()() ` Returns the current Y start |
| ` int` | ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#getZEnd()() ` Returns the current Z end |
| ` int` | ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#getZStart()() ` Returns the current Z start |
| ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions` | ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#setX(int,%20int)(int xstartArg, int xendArg) ` Set the X range. |
| ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions` | ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#setY(int,%20int)(int ystartArg, int yendArg) ` Set the Y range. |
| ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions` | ` https://developer.android.com/reference/android/renderscript/Script.LaunchOptions#setZ(int,%20int)(int zstartArg, int zendArg) ` Set the Z range. |

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

### LaunchOptions

```
public LaunchOptions ()
```

<br />

<br />

## Public methods

### getXEnd

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

```
public int getXEnd ()
```

Returns the current X end

<br />

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

### getXStart

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

```
public int getXStart ()
```

Returns the current X start

<br />

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

### getYEnd

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

```
public int getYEnd ()
```

Returns the current Y end

<br />

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

### getYStart

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

```
public int getYStart ()
```

Returns the current Y start

<br />

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

### getZEnd

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

```
public int getZEnd ()
```

Returns the current Z end

<br />

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

### getZStart

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

```
public int getZStart ()
```

Returns the current Z start

<br />

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

### setX

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

```
public Script.LaunchOptions setX (int xstartArg, 
                int xendArg)
```

Set the X range. xstartArg is the lowest coordinate of the range, and xendArg-1 is the highest coordinate of the range.

<br />

| Parameters ||
|---|---|
| `xstartArg` | `int`: Must be \>= 0 <br /> |
| `xendArg` | `int`: Must be \> xstartArg <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/renderscript/Script.LaunchOptions` | LaunchOptions <br /> |

### setY

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

```
public Script.LaunchOptions setY (int ystartArg, 
                int yendArg)
```

Set the Y range. ystartArg is the lowest coordinate of the range, and yendArg-1 is the highest coordinate of the range.

<br />

| Parameters ||
|---|---|
| `ystartArg` | `int`: Must be \>= 0 <br /> |
| `yendArg` | `int`: Must be \> ystartArg <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/renderscript/Script.LaunchOptions` | LaunchOptions <br /> |

### setZ

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

```
public Script.LaunchOptions setZ (int zstartArg, 
                int zendArg)
```

Set the Z range. zstartArg is the lowest coordinate of the range, and zendArg-1 is the highest coordinate of the range.

<br />

| Parameters ||
|---|---|
| `zstartArg` | `int`: Must be \>= 0 <br /> |
| `zendArg` | `int`: Must be \> zstartArg <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/renderscript/Script.LaunchOptions` | LaunchOptions <br /> |