Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.box.androidsdk.content;
 
Represents the API of the event endpoint on Box. This class can be used to generate request objects for each of the APIs exposed endpoints
public class BoxApiEvent extends BoxApi {

    
Constructs a BoxApiEvent with the provided BoxSession

Parameters:
session authenticated session to use with the BoxApiEvent
    public BoxApiEvent(BoxSession session) {
        super(session);
    }
    protected String getEventsUrl() { return getBaseUri() + "/events"; }


    
Gets a request that retrieves user events

Returns:
request to get user events
        return request;
    }

    
Gets a request that retrieves enterprise events

Returns:
request to retrieve enterprise events
        return request;
    }

    
Gets a request that retrieves a RealTimeServerConnection, which is used to create a long poll to check for some generic change to the user's account. This can be combined with syncing logic using getUserEventsRequest or getEnterpriseEventsRequest to discover what has changed.

Parameters:
changeListener A listener that will get triggered when a change has been made to the user's account or an exception has occurred.
Returns:
A RealTimeServerConnection that checks for a change to a user's account.
        return new RealTimeServerConnection(request,changeListener );
    }
New to GrepCode? Check out our FAQ X