The present invention provides Bruton’s Tyrosine Kinase (Btk) inhibitor compounds according to Formula I or a pharmaceutically acceptable salt thereof or to pharmaceutical compositions comprising these compounds and to their use in therapy. In particular, the present invention relates to the use of Btk inhibitor compounds in the treatment of Btk mediated disorders.本發明提供式I之布魯頓氏酪胺酸激酶(Bruton's Tyrosine Kinase,Btk)抑制劑化合物或其醫藥學上可接受之鹽,或包含此等化合物之醫藥組合物,及其於療法之用途。特別地,本發明係關於Btk抑制劑化合物治療Btk介導之病症的用途。