Skip to content

Commit

Permalink
Added possibility to key-value observing of status
Browse files Browse the repository at this point in the history
  • Loading branch information
Константин Бойченко committed Mar 15, 2017
1 parent 0c49dea commit f7a82e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SDAVAssetExportSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
*
* For possible values, see “AVAssetExportSessionStatus.”
*
* You can observe this property using key-value observing. (TODO)
* You can observe this property using key-value observing.
*/
@property (nonatomic, assign, readonly) AVAssetExportSessionStatus status;

Expand Down
5 changes: 5 additions & 0 deletions SDAVAssetExportSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -445,4 +445,9 @@ - (void)reset
self.completionHandler = nil;
}

+ (NSSet *)keyPathsForValuesAffectingStatus
{
return [NSSet setWithObject:@"writer.status"];
}

@end

0 comments on commit f7a82e9

Please sign in to comment.