Esempio n. 1
0
  public void setProvideCapability(
      ViewCapability viewCapability, ViewResourceCallback resourceCallback) {
    if (!canProvideCapability(viewCapability)) {
      throw new UnsupportedOperationException(
          "View capability " + viewCapability.getClass().getSimpleName() + " not supported");
    }

    if (viewCapability instanceof RemoveStreamViewCapability) {
      for (ViewFactory viewFactory : viewFactories) {
        viewFactory.setProvideCapability(viewCapability, resourceCallback);
      }
    }
  }
Esempio n. 2
0
 public void setProvideCapability(
     ViewCapability viewCapability, ViewResourceCallback resourceCallback) {
   if (!canProvideCapability(viewCapability)) {
     throw new UnsupportedOperationException(
         "View capability " + viewCapability.getClass().getSimpleName() + " not supported");
   }
   if (viewCapability instanceof RemoveStreamViewCapability) {
     isRemoveStreamHandling = true;
     return;
   }
   if (relativeAccessGetterImpl == null) {
     relativeAccessGetterImpl = new RelativeAccessByEventNIndexMap();
   }
   resourceCallback.setViewResource(relativeAccessGetterImpl);
 }