{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1448","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1448/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1448/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1448/events","html_url":"https://github.com/NativeScript/NativeScript/issues/1448","id":129215948,"number":1448,"title":"Available methods of a cocoapod","user":{"login":"stevetayloruk","id":5065543,"avatar_url":"https://avatars.githubusercontent.com/u/5065543?v=3","gravatar_id":"","url":"https://api.github.com/users/stevetayloruk","html_url":"https://github.com/stevetayloruk","followers_url":"https://api.github.com/users/stevetayloruk/followers","following_url":"https://api.github.com/users/stevetayloruk/following{/other_user}","gists_url":"https://api.github.com/users/stevetayloruk/gists{/gist_id}","starred_url":"https://api.github.com/users/stevetayloruk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevetayloruk/subscriptions","organizations_url":"https://api.github.com/users/stevetayloruk/orgs","repos_url":"https://api.github.com/users/stevetayloruk/repos","events_url":"https://api.github.com/users/stevetayloruk/events{/privacy}","received_events_url":"https://api.github.com/users/stevetayloruk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-27T17:35:00Z","updated_at":"2016-01-27T20:30:17Z","closed_at":"2016-01-27T20:30:17Z","body":"Hi,\r\n\r\nQuestion:\r\n\r\nI'm using this cocoapod (https://github.com/HeshamMegid/HMSegmentedControl) and I'm trying to call this function from Nativescript but it says it's not available.\r\n\r\nI'm trying to call this method:\r\n\r\n```\r\n- (void)setSelectedSegmentIndex:(NSUInteger)index animated:(BOOL)animated notify:(BOOL)notify \r\n```\r\nlike this:\r\n\r\n```\r\nconst tabItems = ['tab1', 'tab2', 'tab3', 'tab4'];\r\nconst tabs = HMSegmentedControl.alloc().initWithSectionTitles(tabItems);\r\ntabs.setSelectedSegmentIndex(index, true, true);\r\n```\r\n\r\nIt's the last line I can't get to work. I can easily set properties like so:\r\n\r\n```\r\ntabs.selectedSegmentIndex = index\r\n```\r\nHow do I go about trying to understand the Nativescript equivalent? Is there a way to see all exposed functions like a console.dump()?\r\n\r\nI've read the marshalling section in the docs but i can get it to work.\r\n\r\nThanks\r\n\r\nSteve"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/175840401","html_url":"https://github.com/NativeScript/NativeScript/issues/1448#issuecomment-175840401","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1448","id":175840401,"user":{"login":"stevetayloruk","id":5065543,"avatar_url":"https://avatars.githubusercontent.com/u/5065543?v=3","gravatar_id":"","url":"https://api.github.com/users/stevetayloruk","html_url":"https://github.com/stevetayloruk","followers_url":"https://api.github.com/users/stevetayloruk/followers","following_url":"https://api.github.com/users/stevetayloruk/following{/other_user}","gists_url":"https://api.github.com/users/stevetayloruk/gists{/gist_id}","starred_url":"https://api.github.com/users/stevetayloruk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevetayloruk/subscriptions","organizations_url":"https://api.github.com/users/stevetayloruk/orgs","repos_url":"https://api.github.com/users/stevetayloruk/repos","events_url":"https://api.github.com/users/stevetayloruk/events{/privacy}","received_events_url":"https://api.github.com/users/stevetayloruk/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T20:30:16Z","updated_at":"2016-01-27T20:30:16Z","body":"@NathanaelA thanks soooo much.  Great article, wish I knew about it before.\r\n\r\n"}}