io.agora.rtc

## Class AgoraRtmService

- java.lang.Object
- - io.agora.rtc.AgoraRtmService

-     public class AgoraRtmService
      extends java.lang.Object

  Wrapper for RTM service functionality.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private long` | `cptr` Native pointer to the RTM service instance.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AgoraRtmService(long cptr)` Constructs an RTM service.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `destroy()` Destroys the RTM service and releases native resources.
    `private void` | `ndestroy()` Destroys the native RTM service.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### cptr

          private long cptr

      Native pointer to the RTM service instance.

  - ### Constructor Detail

    - #### AgoraRtmService

          public AgoraRtmService(long cptr)

      Constructs an RTM service.
      Parameters:
        `cptr` - Native pointer to the RTM service instance

  - ### Method Detail

    - #### ndestroy

          private void ndestroy()

      Destroys the native RTM service.

    - #### destroy

          public void destroy()

      Destroys the RTM service and releases native resources.