Class PTChannelManager

  • All Implemented Interfaces:
    NSObject

    public class PTChannelManager
    extends NSObject
    API-Since: 16.0
    • Constructor Detail

      • PTChannelManager

        protected PTChannelManager​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • activeChannelUUID

        @Nullable
        public @Nullable NSUUID activeChannelUUID()
        Only one channel can be active at a time -- this is the channel that will handle user events This being nonnull reflects whether the user can see this channel is active in the user interface The ephemeral push token is only usable when this is nonnull.
      • allocWithZone

        public static PTChannelManager allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • channelManagerWithDelegateRestorationDelegateCompletionHandler

        public static void channelManagerWithDelegateRestorationDelegateCompletionHandler​(@NotNull
                                                                                          @NotNull PTChannelManagerDelegate delegate,
                                                                                          @NotNull
                                                                                          @NotNull PTChannelRestorationDelegate restorationDelegate,
                                                                                          @NotNull
                                                                                          @NotNull PTChannelManager.Block_channelManagerWithDelegateRestorationDelegateCompletionHandler completionHandler)
        You must instantiate a channel manager upon launching your app, otherwise the system will tear down channels and their ability to receive pushes. By providing a restoration delegate, you can decide whether to rejoin or leave any previously active channels that the system knows about. Once the channel restoration process is completed, you will be given the PTChannelManager instance.
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • leaveChannelWithUUID

        public void leaveChannelWithUUID​(@NotNull
                                         @NotNull NSUUID channelUUID)
        If successful, you will receive the delegate callback channelManager:channelUUID:didLeaveChannelWithUUID:reason: with reason PTChannelLeaveReasonProgrammaticRequest, Otherwise, the delegate callback channelManager:failedToLeaveChannelWithUUID:error: will be invoked if implemented. Generally, this should always succeed so long as you are already joined to a channel.
      • requestBeginTransmittingWithChannelUUID

        public void requestBeginTransmittingWithChannelUUID​(@NotNull
                                                            @NotNull NSUUID channelUUID)
        If successful, you will receive the delegate callback channelManager:channelUUID:didBeginTransmittingFromSource: with PTChannelTransmitRequestSourceProgrammaticRequest. Otherwise, the delegate callback channelManager:failedToBeginTransmittingInChannelWithUUID:error: will be invoked if implemented.
      • requestJoinChannelWithUUIDDescriptor

        public void requestJoinChannelWithUUIDDescriptor​(@NotNull
                                                         @NotNull NSUUID channelUUID,
                                                         @NotNull
                                                         @NotNull PTChannelDescriptor descriptor)
        You may only join a channel in the foreground. If successful, you will receive the delegate callback channelManager:didJoinChannelWithUUID:reason: with reason PTChannelJoinReasonProgrammaticRequest. Otherwise, the delegate callback channelManager:failedToJoinChannelWithUUID:error: will be invoked if implemented.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setActiveRemoteParticipantForChannelUUIDCompletionHandler

        public void setActiveRemoteParticipantForChannelUUIDCompletionHandler​(@Nullable
                                                                              @Nullable PTParticipant participant,
                                                                              @NotNull
                                                                              @NotNull NSUUID channelUUID,
                                                                              @Nullable
                                                                              @Nullable PTChannelManager.Block_setActiveRemoteParticipantForChannelUUIDCompletionHandler completionHandler)
        When receiving incoming audio from a remote participant, set the participant to a nonnull value, which will update the system user interface and block transmitting. When the user has stopped speaking, set the participant to nil.
      • setServiceStatusForChannelUUIDCompletionHandler

        public void setServiceStatusForChannelUUIDCompletionHandler​(long status,
                                                                    @NotNull
                                                                    @NotNull NSUUID channelUUID,
                                                                    @Nullable
                                                                    @Nullable PTChannelManager.Block_setServiceStatusForChannelUUIDCompletionHandler completionHandler)
        The default value for service status is PTServiceStatusReady. If your underlying network connection is experiencing issues, set the appropriate service status. The service status will be reflected in the system user interface.
      • setTransmissionModeForChannelUUIDCompletionHandler

        public void setTransmissionModeForChannelUUIDCompletionHandler​(long transmissionMode,
                                                                       @NotNull
                                                                       @NotNull NSUUID channelUUID,
                                                                       @Nullable
                                                                       @Nullable PTChannelManager.Block_setTransmissionModeForChannelUUIDCompletionHandler completionHandler)
        The default value for transmission mode is PTTransmissionModeHalfDuplex. If your application support one of the other transmission modes set it using this function. The system user interface will be updated to reflect the transmission mode.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • stopTransmittingWithChannelUUID

        public void stopTransmittingWithChannelUUID​(@NotNull
                                                    @NotNull NSUUID channelUUID)
        If successful, you will receive the delegate callback channelManager:channelUUID:didEndTransmittingFromSource with request source PTChannelTransmitRequestSourceProgrammaticRequest. Otherwise, the delegate callback channelManager:failedToStopTransmittingInChannelWithUUID:error: will be invoked if implemented. Generally, this should always succeed, unless you are not currently transmitting or are not joined to a channel.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • setAccessoryButtonEventsEnabledForChannelUUIDCompletionHandler

        public void setAccessoryButtonEventsEnabledForChannelUUIDCompletionHandler​(boolean enabled,
                                                                                   @NotNull
                                                                                   @NotNull NSUUID channelUUID,
                                                                                   @Nullable
                                                                                   @Nullable PTChannelManager.Block_setAccessoryButtonEventsEnabledForChannelUUIDCompletionHandler completionHandler)
        The default channel behavior is to map supported accessory button events to begin/end transmission actions. If your application does not wish to map these button events to transmission actions you can disable them by setting the enabled value to false. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.