Skip to content

Commit b639209

Browse files
authored
Update README.md
1 parent b4bedc7 commit b639209

File tree

1 file changed

+1
-46
lines changed

1 file changed

+1
-46
lines changed

README.md

+1-46
Original file line numberDiff line numberDiff line change
@@ -224,54 +224,9 @@ self.annotationView.frame = <# desired frame #>;
224224
self.annotationView.toolbarView.frame = <# desired frame #>;
225225
```
226226

227-
If you would like to be annotated on either the entire screen or a specified portion of the screen:
228-
229-
```objc
230-
self.annotator = [[OTAnnotator alloc] init];
231-
[self.annotator connectForReceivingAnnotationWithSize:<# desired size #>
232-
completionHandler:^(OTAnnotationSignal signal, NSError *error) {
233-
if (signal == OTAnnotationSessionDidConnect){
234-
self.annotator.annotationScrollView.frame = self.view.bounds;
235-
[self.view addSubview:self.annotator.annotationScrollView];
236-
}
237-
}];
238-
239-
self.annotator.dataReceivingHandler = ^(NSArray *data) {
240-
NSLog(@"%@", data);
241-
};
242-
```
243-
244-
If you would like to annotate on a remote client's screen:
245-
246-
```objc
247-
self.annotator = [[OTAnnotator alloc] init];
248-
[self.annotator connectForSendingAnnotationWithSize:self.sharer.subscriberView.frame.size
249-
completionHandler:^(OTAnnotationSignal signal, NSError *error) {
250-
251-
if (signal == OTAnnotationSessionDidConnect){
252-
253-
// configure annotation view
254-
self.annotator.annotationScrollView.frame = self.view.bounds;
255-
[self.view addSubview:self.annotator.annotationScrollView];
256-
257-
// self.sharer.subscriberView is the screen shared from a remote client.
258-
// It does not make sense to `connectForSendingAnnotationWithSize` if you don't receive a screen sharing.
259-
[self.annotator.annotationScrollView addContentView:self.sharer.subscriberView];
260-
261-
// configure annotation feature
262-
self.annotator.annotationScrollView.annotatable = YES;
263-
self.annotator.annotationScrollView.annotationView.currentAnnotatable = [OTAnnotationPath pathWithStrokeColor:[UIColor yellowColor]];
264-
}
265-
}];
266-
267-
self.annotator.dataSendingHandler = ^(NSArray *data, NSError *error) {
268-
NSLog(@"%@", data);
269-
};
270-
```
271-
272227
### Class design
273228

274-
The following classes represent the software design for the OpenTok Annotations Accelerator Pack.
229+
The following classes represent the software design for the OpenTok Annotations Accelerator.
275230

276231
| Class | Description |
277232
| -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

0 commit comments

Comments
 (0)