# AndroidPackageScope

# AndroidPackageScope


```
public final class AndroidPackageScope implements Parcelable
```

<br />

*** ** * ** ***

> [!WARNING]
> Direct use of the Google Play Services DTDI SDK is not supported. You should use the [Cross
> Device SDK](https://developer.android.com/guide/topics/connectivity/cross-device-sdk/overview) for creating cross device experiences.

Represents an Android Package remote scope. Used to indicate another Android Package that can be started from a wakeup request. Receiving package must declare the calling package as an originator in its manifest file. Not suitable for sending over the wire.

## Summary

| ### Public fields |
|---|---|
| `static final @NonNull Parcelable.Creator<@NonNull AndroidPackageScope>` | `CREATOR` |

| ### Public constructors |
|---|
| `AndroidPackageScope(@NonNull String packageName)` |

| ### Public methods |
|---|---|
| `final @NonNull String` | `getPackageName()` Name of an Android package that can be woken. |
| `void` | `writeToParcel(@NonNull Parcel dest, int flags)` |

## Public fields

### CREATOR

```
public static final @NonNull Parcelable.Creator<@NonNull AndroidPackageScope> CREATOR
```

## Public constructors

### AndroidPackageScope

```
public AndroidPackageScope(@NonNull String packageName)
```

## Public methods

### getPackageName

```
public final @NonNull String getPackageName()
```

Name of an Android package that can be woken.

### writeToParcel

```
public void writeToParcel(@NonNull Parcel dest, int flags)
```