TechnologiesCommunication, Contacts & Messaging

PushToTalk

iOSmacOStvOSwatchOSvisionOS

PushToTalk lets you build walkie-talkie style apps on iOS, with system-managed channels, transmission, and participants. You join and manage a channel through PTChannelManager, describing it with a PTChannelDescriptor and responding to system events through PTChannelManagerDelegate and PTChannelRestorationDelegate. The framework reports transmission state with types such as PTTransmissionMode, PTServiceStatus, and PTChannelTransmitRequestSource, models who is speaking through PTParticipant, and surfaces conditions through PTChannelJoinReason, PTChannelLeaveReason, PTPushResult, and errors like PTInstantiationError and PTChannelError.

Channel Management 2

The central object for joining, leaving, and transmitting on a push-to-talk channel.

  • Cl
    PTChannelManageriOS 16.0+
    An object that joins, leaves, and transmits on system-managed push-to-talk channels.
  • Cl
    PTChannelDescriptoriOS 16.0+
    An object that describes a push-to-talk channel, including its name and image.

Responding to Channel Events 2

Delegates that receive system notifications about channel state, transmission, and restoration.

  • Pr
    PTChannelManagerDelegateiOS 16.0+
    A protocol your app implements to respond to channel manager events such as transmission and service status changes.
  • Pr
    PTChannelRestorationDelegateiOS 16.0+
    A protocol that supplies a channel descriptor when the system restores a previously joined channel.

Participants and Push Results 2

Types that model who is speaking on a channel and the outcome of an incoming push.

  • Cl
    PTParticipantiOS 16.0+
    An object that represents an active participant speaking on a push-to-talk channel.
  • Cl
    PTPushResultiOS 16.0+
    An object that represents the result of handling an incoming push-to-talk notification.

Transmission and Service State 3

Enumerations that describe the current transmission mode, service status, and the source of a transmit request.

  • En
    PTTransmissionModeiOS 16.0+
    Constants that specify whether a channel transmits using half-duplex or full-duplex audio.
  • En
    PTServiceStatusiOS 16.0+
    Constants that indicate whether the push-to-talk service is ready, connecting, or unavailable.
  • En
    PTChannelTransmitRequestSourceiOS 16.0+
    Constants that identify the source that requested a transmission, such as the user or the system.

Join and Leave Reasons 2

Enumerations that explain why the system joined or left a channel.

  • En
    PTChannelJoinReasoniOS 16.0+
    Constants that describe why the system joined a push-to-talk channel.
  • En
    PTChannelLeaveReasoniOS 16.0+
    Constants that describe why the system left a push-to-talk channel.

Errors 2

Error types that report problems creating a channel manager or operating on a channel.

  • St
    PTInstantiationErroriOS 16.0+
    An error type that reports a failure to create a push-to-talk channel manager.
  • St
    PTChannelErroriOS 16.0+
    An error type that reports a failure during a push-to-talk channel operation.
← Communication, Contacts & Messaging