{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1601","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1601/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1601/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1601/events","html_url":"https://github.com/NativeScript/NativeScript/issues/1601","id":135134698,"number":1601,"title":"Add remaining properties to ui/core/view.View type definition","user":{"login":"losttime","id":3085626,"avatar_url":"https://avatars.githubusercontent.com/u/3085626?v=3","gravatar_id":"","url":"https://api.github.com/users/losttime","html_url":"https://github.com/losttime","followers_url":"https://api.github.com/users/losttime/followers","following_url":"https://api.github.com/users/losttime/following{/other_user}","gists_url":"https://api.github.com/users/losttime/gists{/gist_id}","starred_url":"https://api.github.com/users/losttime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/losttime/subscriptions","organizations_url":"https://api.github.com/users/losttime/orgs","repos_url":"https://api.github.com/users/losttime/repos","events_url":"https://api.github.com/users/losttime/events{/privacy}","received_events_url":"https://api.github.com/users/losttime/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-20T23:40:06Z","updated_at":"2016-02-23T20:11:24Z","closed_at":null,"body":"There are quite a few functions missing from the type definition for `ui/core/view.View`. Those would be very helpful to those using TypeScript to write plugins that extend the `View` class.\r\n\r\nHere's the documentation for `ui/core/view.View`: https://docs.nativescript.org/ApiReference/ui/core/view/View\r\n\r\nHere's the type definition for `ui/core/view.View`: https://github.com/NativeScript/NativeScript/blob/master/ui/core/view.d.ts#L105\r\n\r\nThese are the functions I'm specifically interested in using:\r\n```\r\n_onDetached(force?: boolean): void;\r\n_setCurrentMeasureSpecs(widthMeasureSpec: number, heightMeasureSpec: number): boolean;\r\n```\r\n\r\nbut there are quite a few others that are missing as well:\r\n```\r\n_parentChanged( oldParent View )\r\n_isInheritedChange() Boolean\r\n_addViewToNativeVisualTree( view View, atIndex? Number ) Boolean\r\n_removeViewFromNativeVisualTree( view View )\r\n_eachChildView( callback Function... )\r\n_onAttached( context Object )\r\n_onContextChanged()\r\n_onDetached( force? Boolean )\r\n_createUI()\r\n_shouldApplyStyleHandlers()\r\n_checkMetadataOnPropertyChanged( metadata PropertyMetadata )\r\n_updateLayout()\r\n_setCurrentMeasureSpecs( widthMeasureSpec Number, heightMeasureSpec Number ) Boolean\r\n_setCurrentLayoutBounds( left Number, top Number, right Number, bottom Number )\r\n_getCurrentLayoutBounds() {}...\r\n_goToVisualState( state String )\r\n_setNativeViewFrame( nativeView Object, frame Object )\r\n```"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/187882694","html_url":"https://github.com/NativeScript/NativeScript/issues/1601#issuecomment-187882694","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1601","id":187882694,"user":{"login":"losttime","id":3085626,"avatar_url":"https://avatars.githubusercontent.com/u/3085626?v=3","gravatar_id":"","url":"https://api.github.com/users/losttime","html_url":"https://github.com/losttime","followers_url":"https://api.github.com/users/losttime/followers","following_url":"https://api.github.com/users/losttime/following{/other_user}","gists_url":"https://api.github.com/users/losttime/gists{/gist_id}","starred_url":"https://api.github.com/users/losttime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/losttime/subscriptions","organizations_url":"https://api.github.com/users/losttime/orgs","repos_url":"https://api.github.com/users/losttime/repos","events_url":"https://api.github.com/users/losttime/events{/privacy}","received_events_url":"https://api.github.com/users/losttime/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T20:11:24Z","updated_at":"2016-02-23T20:11:24Z","body":"@PanayotCankov It appears there are already some \"private\" methods (prefixed with an underscore) that are part of the definition file (and not using the `private` keyword). I wonder why some warrant inclusion while others don't?"}}