Interface StreamVideo

  • All Implemented Interfaces:
    io.getstream.android.push.permissions.NotificationPermissionHandler , io.getstream.video.android.core.notifications.NotificationHandler

    
    public interface StreamVideo
     implements NotificationHandler
                        

    The main interface to control the Video calls. StreamVideoImpl implements this interface.

    • Constructor Detail

    • Method Detail

      • queryCalls

         abstract Result<QueriedCalls> queryCalls(Map<String, Object> filters, List<SortField> sort, Integer limit, String prev, String next, Boolean watch)

        Queries calls with a given filter predicate and pagination.

        Parameters:
        limit -
        • maximum number of items in response

        prev -
        • paging support. Set null for first page. Otherwise set the value from last page response.

        next -
        • paging support. Set null for first page. Otherwise set the value from last page response.

        Returns:

        Result containing the QueriedCalls.

      • queryMembers

         abstract Result<QueriedMembers> queryMembers(String type, String id, Map<String, Object> filter, List<SortField> sort, String prev, String next, Integer limit)

        Queries calls with a given filter predicate and pagination.

        Parameters:
        prev -
        • paging support. Set null for first page. Otherwise set the value from last page response.

        next -
        • paging support. Set null for first page. Otherwise set the value from last page response.

        limit -
        • maximum number of items in response

      • createDevice

         abstract Result<Device> createDevice(PushDevice pushDevice)

        Create a device that will be used to receive push notifications.

        Parameters:
        pushDevice - The PushDevice obtained from the selected push provider.
        Returns:

        Result containing the Device.

      • deleteDevice

         abstract Result<Unit> deleteDevice(Device device)

        Remove a device used to receive push notifications.

        Parameters:
        device - The Device, previously provided by createDevice.
        Returns:

        Result if the operation was successful or not.

      • getEdges

         abstract Result<List<EdgeData>> getEdges()

        Returns a list of all the edges available on the network.

      • logOut

         abstract Unit logOut()

        Clears the internal user state, removes push notification devices and clears the call state.

      • devToken

         String devToken(String userId)

        Generate a developer token that can be used to connect users while the app is using a development environment.

        Parameters:
        userId - the desired id of the user to be connected.
      • getContext

         abstract Context getContext()

        Represents the default call config when starting a call.