Update Obj-C Wrappers for DDV
This commit is contained in:
Родитель
6bbb914d70
Коммит
3624dd1683
|
@ -51,7 +51,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
@brief Returns current endpoint if it is set, empty string otherwise.
|
||||
@return Returns current endpoint if it is set, empty string otherwise.
|
||||
*/
|
||||
+(NSString *)getCurrentEndpoint;
|
||||
+(NSString *)currentEndpoint;
|
||||
|
||||
/*!
|
||||
@brief Sets callback for OnDisableNotification event.
|
||||
|
|
|
@ -105,11 +105,9 @@ std::shared_ptr<DefaultDataViewer> _viewer;
|
|||
return result;
|
||||
}
|
||||
|
||||
+(NSString *)getCurrentEndpoint
|
||||
+(NSString *)currentEndpoint
|
||||
{
|
||||
NSString *currentEndpoint = [NSString stringWithCString:_viewer->GetCurrentEndpoint().c_str() encoding:[NSString defaultCStringEncoding]];
|
||||
|
||||
return currentEndpoint;
|
||||
return [NSString stringWithCString:_viewer->GetCurrentEndpoint().c_str() encoding:[NSString defaultCStringEncoding]];
|
||||
}
|
||||
|
||||
+(void)registerOnDisableNotification:(void(^)(void))callback
|
||||
|
|
Загрузка…
Ссылка в новой задаче