ndk::ScopedAStatus

#include <binder_auto_utils.h>

Convenience wrapper.

Summary

See AStatus.

Inheritance

Inherits from: ndk::impl::ScopedAResource< AStatus *, void, AStatus_delete, nullptr >

Constructors and Destructors

ScopedAStatus(AStatus *a)
Takes ownership of a.
ScopedAStatus(ScopedAStatus &&)
~ScopedAStatus()

Public functions

isOk()
bool
See AStatus_isOk.

Public static functions

ok()
Convenience method for okay status.

Public functions

ScopedAStatus

 ScopedAStatus(
  AStatus *a
)

Takes ownership of a.

ScopedAStatus

 ScopedAStatus(
  ScopedAStatus &&
)=default

isOk

bool isOk()

See AStatus_isOk.

~ScopedAStatus

 ~ScopedAStatus()

Public static functions

ok

ScopedAStatus ok()

Convenience method for okay status.