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.
|
@brief Returns current endpoint if it is set, empty string otherwise.
|
||||||
@return 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.
|
@brief Sets callback for OnDisableNotification event.
|
||||||
|
|
|
@ -105,11 +105,9 @@ std::shared_ptr<DefaultDataViewer> _viewer;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
+(NSString *)getCurrentEndpoint
|
+(NSString *)currentEndpoint
|
||||||
{
|
{
|
||||||
NSString *currentEndpoint = [NSString stringWithCString:_viewer->GetCurrentEndpoint().c_str() encoding:[NSString defaultCStringEncoding]];
|
return [NSString stringWithCString:_viewer->GetCurrentEndpoint().c_str() encoding:[NSString defaultCStringEncoding]];
|
||||||
|
|
||||||
return currentEndpoint;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+(void)registerOnDisableNotification:(void(^)(void))callback
|
+(void)registerOnDisableNotification:(void(^)(void))callback
|
||||||
|
|
Загрузка…
Ссылка в новой задаче