# ndk::ScopedAIBinder_Weak


`#include <binder_auto_utils.h>`

Convenience wrapper.

## Summary

See AIBinder_Weak.

### Inheritance

Inherits from: [ndk::impl::ScopedAResource\< AIBinder_Weak \*, AIBinder_Weak_delete, nullptr \>](https://developer.android.com/ndk/reference/classndk/1-1impl-1-1-scoped-a-resource)

| ### Constructors and Destructors ||
|---|---|
| `https://developer.android.com/ndk/reference/classndk/1-1-scoped-a-i-binder-weak#classndk_1_1_scoped_a_i_binder___weak_1af23afd438053b09890d8d510975f8a64(AIBinder_Weak *a)` Takes ownership of a. ||
| `https://developer.android.com/ndk/reference/classndk/1-1-scoped-a-i-binder-weak#classndk_1_1_scoped_a_i_binder___weak_1ac5a91513cd5d914dddf93842e1c5febf(https://developer.android.com/ndk/reference/classndk/1-1-scoped-a-i-binder-weak#classndk_1_1_scoped_a_i_binder___weak &&)` ||
| `https://developer.android.com/ndk/reference/classndk/1-1-scoped-a-i-binder-weak#classndk_1_1_scoped_a_i_binder___weak_1a588e074aed9fc603e3eae8d8806facfe()` ||

| ### Public functions ||
|---|---|
| `https://developer.android.com/ndk/reference/classndk/1-1-scoped-a-i-binder-weak#classndk_1_1_scoped_a_i_binder___weak_1abc967923a8a48df2bcb9168ecd961505(https://developer.android.com/ndk/reference/classndk/1-1-scoped-a-i-binder-weak#classndk_1_1_scoped_a_i_binder___weak &&)=default` | `https://developer.android.com/ndk/reference/classndk/1-1-scoped-a-i-binder-weak#classndk_1_1_scoped_a_i_binder___weak &` |
| `https://developer.android.com/ndk/reference/classndk/1-1-scoped-a-i-binder-weak#classndk_1_1_scoped_a_i_binder___weak_1ae8649a1cd5ca8f181a37d498ce98ff20() const ` | `https://developer.android.com/ndk/reference/classndk/1-1-sp-a-i-binder#classndk_1_1_sp_a_i_binder` See AIBinder_Weak_promote. |

## Public functions

### ScopedAIBinder_Weak

```
 ScopedAIBinder_Weak(
  AIBinder_Weak *a
)
```
Takes ownership of a.

### ScopedAIBinder_Weak

```
 ScopedAIBinder_Weak(
  ScopedAIBinder_Weak &&
)=default
```

### operator=

```
ScopedAIBinder_Weak & operator=(
  ScopedAIBinder_Weak &&
)=default
```

### promote

```
SpAIBinder promote() const 
```
See AIBinder_Weak_promote.

### \~ScopedAIBinder_Weak

```
 ~ScopedAIBinder_Weak()
```